{"id":225,"date":"2013-07-25T22:54:44","date_gmt":"2013-07-25T13:54:44","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=225"},"modified":"2025-06-03T11:27:56","modified_gmt":"2025-06-03T02:27:56","slug":"git%e3%81%ae%e6%94%b9%e8%a1%8c%e3%82%b3%e3%83%bc%e3%83%89%e8%87%aa%e5%8b%95%e5%a4%89%e6%8f%9b","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/225","title":{"rendered":"[git] \u30c1\u30a7\u30c3\u30af\u30a4\u30f3\/\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u6642\u306e\u6539\u884c\u30b3\u30fc\u30c9\u81ea\u52d5\u5909\u63db"},"content":{"rendered":"<p>Windows\u74b0\u5883\u306e\u5834\u5408\u3001git\u306e\u30c1\u30a7\u30c3\u30af\u30a4\u30f3\uff0f\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u306e\u3068\u304d\u306b\u6539\u884c\u30b3\u30fc\u30c9\u306e\u81ea\u52d5\u5909\u63db\u304c\u50cd\u304f\u30b1\u30fc\u30b9\u304c\u3042\u308b\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u306f\u81ea\u52d5\u5909\u63db\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u6ce8\u610f\u3059\u308b\u3053\u3068\u3002<\/p>\n<p><!--more--><\/p>\n<h3>\u30c1\u30a7\u30c3\u30af\u30a4\u30f3\uff0f\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u53cc\u65b9\u5411\u306e\u81ea\u52d5\u5909\u63db<\/h3>\n<pre class=\"lang:sh decode:true \" >$ git config --global core.autocrlf true<\/pre>\n<table>\n<tbody>\n<tr>\n<th>&nbsp;<\/th>\n<th align=\"center\">Working<\/th>\n<th align=\"center\"><b>&nbsp;<\/b><\/th>\n<th align=\"center\">Repository<\/th>\n<\/tr>\n<tr align=\"center\">\n<th rowspan=\"2\">CHECK IN<\/th>\n<td align=\"center\"><font color=\"blue\">CR LF<\/font><\/td>\n<td align=\"center\"><b>&rArr;<\/b><\/td>\n<td align=\"center\"><font color=\"red\">LF<\/font><\/td>\n<\/tr>\n<tr align=\"center\">\n<td align=\"center\"><font color=\"gray\">LF<\/font><\/td>\n<td align=\"center\"><b>&rArr;<\/b><\/td>\n<td align=\"center\"><font color=\"gray\">LF<\/font><\/td>\n<\/tr>\n<tr>\n<th>CHECK OUT<\/th>\n<td align=\"center\"><font color=\"blue\">CR LF<\/font><\/td>\n<td align=\"center\"><b>&lArr;<\/b><\/td>\n<td align=\"center\"><font color=\"red\">LF<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3>\u30c1\u30a7\u30c3\u30af\u30a4\u30f3\u306e\u307f\u81ea\u52d5\u5909\u63db<\/h3>\n<pre class=\"lang:sh decode:true \" >$ git config --global core.autocrlf input<\/pre>\n<table>\n<tbody>\n<tr>\n<th>&nbsp;<\/th>\n<th>Working<\/th>\n<th><b>&nbsp;<\/b><\/th>\n<th>Repository<\/th>\n<\/tr>\n<tr>\n<th rowspan=\"2\">CHECK IN<\/th>\n<td><font color=\"blue\">CR LF<\/font><\/td>\n<td>&rArr;<\/td>\n<td><font color=\"red\">LF<\/font><\/td>\n<\/tr>\n<tr align=\"center\">\n<td align=\"center\"><font color=\"gray\">LF<\/font><\/td>\n<td align=\"center\"><b>&rArr;<\/b><\/td>\n<td align=\"center\"><font color=\"gray\">LF<\/font><\/td>\n<\/tr>\n<tr>\n<th>CHECK OUT<\/th>\n<td><font color=\"gray\">LF<\/font><\/td>\n<td>&lArr;<\/td>\n<td><font color=\"gray\">LF<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3>\u7121\u5909\u63db<\/h3>\n<pre class=\"lang:sh decode:true \" >$ git config --global core.autocrlf false<\/pre>\n<table>\n<tbody>\n<tr align=\"center\">\n<th>&nbsp;<\/th>\n<th>Working<\/th>\n<th><b>&nbsp;<\/b><\/th>\n<th>Repository<\/th>\n<\/tr>\n<tr>\n<th rowspan=\"2\">CHECK IN<\/th>\n<td><font color=\"gray\">CR LF<\/font><\/td>\n<td>&rArr;<\/td>\n<td><font color=\"gray\">CR LF<\/font><\/td>\n<\/tr>\n<tr align=\"center\">\n<td align=\"center\"><font color=\"gray\">LF<\/font><\/td>\n<td align=\"center\"><b>&rArr;<\/b><\/td>\n<td align=\"center\"><font color=\"gray\">LF<\/font><\/td>\n<\/tr>\n<tr>\n<th rowspan=\"2\">CHECK OUT<\/th>\n<td><font color=\"gray\">CR LF<\/font><\/td>\n<td>&lArr;<\/td>\n<td><font color=\"gray\">CR LF<\/font><\/td>\n<\/tr>\n<tr align=\"center\">\n<td align=\"center\"><font color=\"gray\">LF<\/font><\/td>\n<td align=\"center\"><b>&lArr;<\/b><\/td>\n<td align=\"center\"><font color=\"gray\">LF<\/font><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<hr>\n<h3>\u5185\u90e8\u30ea\u30f3\u30af<\/h3>\n<ul>\n<li><a href=\"\/tech\/index.php\/archives\/2615\">[git] \u81ea\u52d5\u6539\u884c\u30b3\u30fc\u30c9\u5909\u63db<\/a><\/li>\n<li><a href=\"\/tech\/index.php\/archives\/2046\">[git] \u62e1\u5f35\u5b50\u306a\u3069\u306b\u3088\u308b\u632f\u308b\u821e\u3044\u306e\u5909\u66f4<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Windows\u74b0\u5883\u306e\u5834\u5408\u3001git\u306e\u30c1\u30a7\u30c3\u30af\u30a4\u30f3\uff0f\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u306e\u3068\u304d\u306b\u6539\u884c\u30b3\u30fc\u30c9\u306e\u81ea\u52d5\u5909\u63db\u304c\u50cd\u304f\u30b1\u30fc\u30b9\u304c\u3042\u308b\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u306f\u81ea\u52d5\u5909\u63db\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u6ce8\u610f\u3059\u308b\u3053\u3068\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[2],"class_list":["post-225","post","type-post","status-publish","format-standard","hentry","category-memo","tag-git"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=225"}],"version-history":[{"count":33,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/225\/revisions"}],"predecessor-version":[{"id":8064,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/225\/revisions\/8064"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}