{"id":7142,"date":"2019-11-18T23:32:18","date_gmt":"2019-11-18T14:32:18","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=7142"},"modified":"2023-05-27T19:00:56","modified_gmt":"2023-05-27T10:00:56","slug":"%e3%80%90git%e3%80%91%e7%ae%a1%e7%90%86%e3%81%99%e3%81%b9%e3%81%8d%e3%81%a7%e3%81%af%e3%81%aa%e3%81%84%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=7142","title":{"rendered":"\u3010Git\u3011\u7ba1\u7406\u5bfe\u8c61\u3068\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3001\u3059\u3079\u304d\u3067\u306f\u306a\u3044\u30d5\u30a1\u30a4\u30eb"},"content":{"rendered":"<h2>Git\u7ba1\u7406\u5bfe\u8c61\u3068\u3059\u308b\u30d5\u30a1\u30a4\u30eb<\/h2>\n<h3>\u958b\u767a\u306e\u6210\u679c\u7269\u30d5\u30a1\u30a4\u30eb<\/h3>\n<ul>\n<li>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/li>\n<li>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/li>\n<\/ul>\n<h3>\u74b0\u5883\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/h3>\n<h4>Gemfile\u3001Gemfile.lock<\/h4>\n<p>Gem\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30c1\u30fc\u30e0\u5185\u3067\u6574\u3048\u308b\u305f\u3081\u306b\u5fc5\u8981<\/p>\n<h4>.ruby-version<\/h4>\n<p>Ruby\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u63c3\u3048\u308b\u305f\u3081\u306b\u5fc5\u8981<\/p>\n<h4>.gitignore<\/h4>\n<p>\u7ba1\u7406\u5bfe\u8c61\u5916\u30d5\u30a1\u30a4\u30eb\u3092\u7d71\u4e00\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981<\/p>\n<h4>db\/schema.rb<\/h4>\n<p>DB\u60c5\u5831<\/p>\n<h4>package.json\u3001package.lock.json<\/h4>\n<p>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u306e\u5834\u5408\u306f\u6307\u5b9a\u3057\u307e\u3059\u3002package.json\u306f\u5f53\u305f\u308a\u524d\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001package.lock.json\u3082git\u306e\u7ba1\u7406\u5bfe\u8c61\u3068\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002\uff08\u4e3b\u306b\u5404\u958b\u767a\u8005\u9593\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u30ba\u30ec\u304c\u767a\u751f\u3057\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3059\u308b\u305f\u3081\uff09<\/p>\n<h2>Git\u7ba1\u7406\u5bfe\u8c61\u5916\u3068\u3059\u308b\u30d5\u30a1\u30a4\u30eb<\/h2>\n<p>\u4e0b\u8a18\u306e\u30d5\u30a1\u30a4\u30eb\u985e\u306fGit\u3067\u7ba1\u7406\u3059\u308b\u3079\u304d\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<span style=\"color: #ff0000;\"><strong>\u300c.gitignore\u300d<\/strong><\/span>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u7ba1\u7406\u5bfe\u8c61\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u4f5c\u6210\u3057\u3066\u7ba1\u7406\u5bfe\u8c61\u304b\u3089\u5916\u3059\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u81ea\u52d5\u751f\u6210\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u985e<\/h3>\n<ul>\n<li>\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb<\/li>\n<li>\u30d1\u30c3\u30b1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb<\/li>\n<li>\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb<\/li>\n<\/ul>\n<h3>OS\u306e\u7ba1\u7406\u30d5\u30a1\u30a4\u30eb<\/h3>\n<ul>\n<li>Thumb.db(Windows)<\/li>\n<li>.DS_Store(Mac)<\/li>\n<\/ul>\n<h3>\u30ad\u30e3\u30c3\u30b7\u30e5\u30d5\u30a1\u30a4\u30eb<\/h3>\n<h3>.sass-cache<\/h3>\n<p>Sass\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u3059\u3002\u30b3\u30df\u30c3\u30c8\u306e\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h3>\u74b0\u5883\u5909\u6570\u30d5\u30a1\u30a4\u30eb<\/h3>\n<p>direnv\u306a\u3069\u3092\u4f7f\u3063\u3066\u74b0\u5883\u5909\u6570\u7cfb\u306e.env\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u57fa\u672c\u7684\u306b\u306f\u9664\u5916\u3057\u307e\u3057\u3087\u3046\u3002env\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u767a\u7528\u3068\u6a5f\u5bc6\u60c5\u5831\u7528(DB\u306e\u30a2\u30af\u30bb\u30b9\u30d1\u30b9\u30ef\u30fc\u30c9\u3084AWS\u306e\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3084\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc\u306a\u3069)\u306b\u5206\u3051\u3066\u7ba1\u7406\u3057\u3066\u3044\u3066\u958b\u767a\u7528\u306f\u666e\u901a\u306bgit\u7ba1\u7406\u5bfe\u8c61\u306b\u3057\u3066\u3044\u308b\u73fe\u5834\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u5bb9\u91cf\u304c\u5927\u304d\u3059\u304e\u308b\u3082\u306e<\/h3>\n<h4>node_modules<\/h4>\n<p>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u3067\u3042\u308c\u3070\u6307\u5b9a\u306f\u5fc5\u9808\u3067\u3059\u3002<\/p>\n<h3>\u4e00\u822c\u516c\u958b\u3057\u3066\u306f\u307e\u305a\u3044\u60c5\u5831<\/h3>\n<h4>\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u66f8\u304b\u308c\u305f\u30d5\u30a1\u30a4\u30eb<\/h4>\n<p><span style=\"color: #ff0000;\"><strong>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u60c5\u5831\u306f\u74b0\u5883\u5909\u6570\u306b\u8a18\u8f09\u3057\u3066\u305d\u306e\u74b0\u5883\u5909\u6570\u3092\u5229\u7528\u3059\u308b\u30b3\u30fc\u30c9\u3092\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u3044\u308c\u308b<\/strong><\/span>\u3068\u3044\u3046\u30b9\u30bf\u30a4\u30eb\u304c\u3088\u304f\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a2d\u5b9a\u60c5\u5831\uff08database.yml\u7b49\uff09<\/h4>\n<p>\u30e6\u30fc\u30b6\u30fc\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u306a\u3044database.yml.example\u7b49\u306e\u540d\u79f0\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u884c\u3044\u5404\u958b\u767a\u30de\u30b7\u30f3\u4e0a\u3067\u66f8\u304d\u63db\u3048\u3066\u5229\u7528\u3059\u308b\u65b9\u6cd5\u304c\u3088\u304f\u53d6\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001GitHub\u306f.gitignore\u30d5\u30a1\u30a4\u30eb\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u516c\u958b\u3057\u3066\u3044\u308b\u306e\u3067\u8a2d\u5b9a\u306b\u8ff7\u3063\u305f\u3089\u53c2\u8003\u306b\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Git\u7ba1\u7406\u5bfe\u8c61\u3068\u3059\u308b\u30d5\u30a1\u30a4\u30eb \u958b\u767a\u306e\u6210\u679c\u7269\u30d5\u30a1\u30a4\u30eb \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 \u74b0\u5883\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb Gemfile\u3001Gemfile.lock Gem\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30c1\u30fc\u30e0\u5185\u3067\u6574\u3048\u308b\u305f\u3081\u306b\u5fc5\u8981 .ruby-version Rub [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[32],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/7142"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7142"}],"version-history":[{"count":10,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/7142\/revisions"}],"predecessor-version":[{"id":20197,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/7142\/revisions\/20197"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7142"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}