{"id":5355,"date":"2025-04-08T13:13:03","date_gmt":"2025-04-08T04:13:03","guid":{"rendered":"https:\/\/417.run\/?p=5355"},"modified":"2025-04-08T13:13:03","modified_gmt":"2025-04-08T04:13:03","slug":"filemode","status":"publish","type":"post","link":"https:\/\/417.run\/pg\/git\/filemode\/","title":{"rendered":"Git\u3067\u6a29\u9650\u306b\u3088\u308b\u5dee\u5206\u3092\u542b\u3081\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u306b\u306f\uff1f"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_17 counter-hierarchy counter-decimal ez-toc-grey\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">\u76ee\u6b21<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class=\"ez-toc-list ez-toc-list-level-1\"><li class=\"ez-toc-page-1 ez-toc-heading-level-2\"><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/417.run\/pg\/git\/filemode\/#Git%E3%81%A7File_Permissions%E3%81%AE%E5%A4%89%E6%9B%B4%E3%82%92%E7%84%A1%E8%A6%96%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\" title=\"Git\u3067File Permissions\u306e\u5909\u66f4\u3092\u7121\u8996\u3059\u308b\u65b9\u6cd5\">Git\u3067File Permissions\u306e\u5909\u66f4\u3092\u7121\u8996\u3059\u308b\u65b9\u6cd5<\/a><ul class=\"ez-toc-list-level-3\"><li class=\"ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/417.run\/pg\/git\/filemode\/#1_corefileMode%E8%A8%AD%E5%AE%9A%E3%81%AE%E5%A4%89%E6%9B%B4\" title=\"1. core.fileMode\u8a2d\u5b9a\u306e\u5909\u66f4\">1. core.fileMode\u8a2d\u5b9a\u306e\u5909\u66f4<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/417.run\/pg\/git\/filemode\/#2_%E3%82%B0%E3%83%AD%E3%83%BC%E3%83%90%E3%83%AB%E8%A8%AD%E5%AE%9A%E3%81%A8%E3%81%97%E3%81%A6%E9%81%A9%E7%94%A8\" title=\"2. \u30b0\u30ed\u30fc\u30d0\u30eb\u8a2d\u5b9a\u3068\u3057\u3066\u9069\u7528\">2. \u30b0\u30ed\u30fc\u30d0\u30eb\u8a2d\u5b9a\u3068\u3057\u3066\u9069\u7528<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/417.run\/pg\/git\/filemode\/#%E6%B3%A8%E6%84%8F%E7%82%B9\" title=\"\u6ce8\u610f\u70b9\">\u6ce8\u610f\u70b9<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/417.run\/pg\/git\/filemode\/#%E8%A8%AD%E5%AE%9A%E3%81%AE%E7%A2%BA%E8%AA%8D%E6%96%B9%E6%B3%95\" title=\"\u8a2d\u5b9a\u306e\u78ba\u8a8d\u65b9\u6cd5\">\u8a2d\u5b9a\u306e\u78ba\u8a8d\u65b9\u6cd5<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Git%E3%81%A7File_Permissions%E3%81%AE%E5%A4%89%E6%9B%B4%E3%82%92%E7%84%A1%E8%A6%96%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\"><\/span>Git\u3067File Permissions\u306e\u5909\u66f4\u3092\u7121\u8996\u3059\u308b\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Git\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u6a29\u9650\uff08\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\uff09\u5909\u66f4\u306b\u3088\u308b\u5dee\u5206\u3092\u7121\u8996\u3057\u305f\u3044\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\uff1a<\/p>\n<h3><span class=\"ez-toc-section\" id=\"1_corefileMode%E8%A8%AD%E5%AE%9A%E3%81%AE%E5%A4%89%E6%9B%B4\"><\/span>1. core.fileMode\u8a2d\u5b9a\u306e\u5909\u66f4<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre><code class=\"language-bash\">git config core.fileMode false\n<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u30e2\u30fc\u30c9\u306e\u5909\u66f4\u3092\u7121\u8996\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u5bfe\u3059\u308b\u8a2d\u5b9a\u5909\u66f4\u3067\u3042\u308a\u3001\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u306f\u5f71\u97ff\u3057\u307e\u305b\u3093\u3002\u30c1\u30fc\u30e0\u30e1\u30f3\u30d0\u30fc\u304c\u540c\u3058\u8a2d\u5b9a\u3092\u9069\u7528\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u500b\u5225\u306b\u8a2d\u5b9a\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_%E3%82%B0%E3%83%AD%E3%83%BC%E3%83%90%E3%83%AB%E8%A8%AD%E5%AE%9A%E3%81%A8%E3%81%97%E3%81%A6%E9%81%A9%E7%94%A8\"><\/span>2. \u30b0\u30ed\u30fc\u30d0\u30eb\u8a2d\u5b9a\u3068\u3057\u3066\u9069\u7528<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre><code class=\"language-bash\">git config --global core.fileMode false\n<\/code><\/pre>\n<p>\u3059\u3079\u3066\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u5bfe\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u30e2\u30fc\u30c9\u306e\u5909\u66f4\u3092\u7121\u8996\u3059\u308b\u8a2d\u5b9a\u3092\u9069\u7528\u3057\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E6%B3%A8%E6%84%8F%E7%82%B9\"><\/span>\u6ce8\u610f\u70b9<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u91cd\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u306e\u6a29\u9650\u7ba1\u7406\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u3053\u306e\u8a2d\u5b9a\u3092\u4f7f\u7528\u3057\u306a\u3044\u65b9\u304c\u5b89\u5168\u3067\u3059<\/li>\n<li>\u30c1\u30fc\u30e0\u958b\u767a\u306e\u5834\u5408\u306f\u3001\u30c1\u30fc\u30e0\u30e1\u30f3\u30d0\u30fc\u3068\u8a2d\u5b9a\u306e\u5171\u6709\u30fb\u76f8\u8ac7\u3092\u63a8\u5968\u3057\u307e\u3059<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"%E8%A8%AD%E5%AE%9A%E3%81%AE%E7%A2%BA%E8%AA%8D%E6%96%B9%E6%B3%95\"><\/span>\u8a2d\u5b9a\u306e\u78ba\u8a8d\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre><code class=\"language-bash\">git config --get core.fileMode\n<\/code><\/pre>\n<p>false\u3068\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u30d5\u30a1\u30a4\u30eb\u30e2\u30fc\u30c9\u306e\u5909\u66f4\u306f\u7121\u8996\u3055\u308c\u308b\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a2d\u5b9a\u306f\u7279\u306b\u7570\u306a\u308bOS\u9593\u3067\u306e\u958b\u767a\uff08Windows\u3068Linux\/macOS\uff09\u3067\u767a\u751f\u3059\u308b\u6a29\u9650\u306e\u5dee\u5206\u3092\u9632\u3050\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u6b21 Git\u3067File Permissions\u306e\u5909\u66f4\u3092\u7121\u8996\u3059\u308b\u65b9\u6cd51. core.fileMode\u8a2d\u5b9a\u306e\u5909\u66f42. \u30b0\u30ed\u30fc\u30d0\u30eb\u8a2d\u5b9a\u3068\u3057\u3066\u9069\u7528\u6ce8\u610f\u70b9\u8a2d\u5b9a\u306e\u78ba\u8a8d\u65b9\u6cd5 Git\u3067File Permissions\u306e\u5909\u66f4\u3092\u7121\u8996\u3059\u308b\u65b9\u6cd5 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":{"0":"post-5355","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-git","7":"nothumb"},"_links":{"self":[{"href":"https:\/\/417.run\/wp-json\/wp\/v2\/posts\/5355"}],"collection":[{"href":"https:\/\/417.run\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/417.run\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/417.run\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/417.run\/wp-json\/wp\/v2\/comments?post=5355"}],"version-history":[{"count":1,"href":"https:\/\/417.run\/wp-json\/wp\/v2\/posts\/5355\/revisions"}],"predecessor-version":[{"id":5356,"href":"https:\/\/417.run\/wp-json\/wp\/v2\/posts\/5355\/revisions\/5356"}],"wp:attachment":[{"href":"https:\/\/417.run\/wp-json\/wp\/v2\/media?parent=5355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/417.run\/wp-json\/wp\/v2\/categories?post=5355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/417.run\/wp-json\/wp\/v2\/tags?post=5355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}