{"id":2189,"date":"2015-09-08T22:08:22","date_gmt":"2015-09-08T13:08:22","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=2189"},"modified":"2015-09-08T22:08:22","modified_gmt":"2015-09-08T13:08:22","slug":"git-http%e7%b5%8c%e7%94%b1%e3%81%a7%e3%81%aepush%e3%81%ab%e5%a4%b1%e6%95%97","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2015\/09\/08\/git-http%e7%b5%8c%e7%94%b1%e3%81%a7%e3%81%aepush%e3%81%ab%e5%a4%b1%e6%95%97\/","title":{"rendered":"Git http\u7d4c\u7531\u3067\u306ePush\u306b\u5931\u6557"},"content":{"rendered":"<p>git\u30ea\u30dd\u30b8\u30c8\u30ea\u306bWeb\u7d4c\u7531\u3067PUSH<\/p>\n<p>\/var\/log\/httpd\/error.log\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u51fa\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>Service not enabled: &#8216;receive-pack&#8217;<\/p>\n<p>\u3053\u308c\u306fgit\u30ea\u30dd\u30b8\u30c8\u30ea\u306econfig\u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a\u3067\u56de\u907f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br \/>\n\u3053\u306e\u30a8\u30e9\u30fc\u3092\u4e57\u308a\u8d8a\u3048\u305f\u3089\u6b21\u306e\u30a8\u30e9\u30fc\uff01<\/p>\n<p>remote: error: By default, updating the current branch in a non-bare repository<br \/>\nremote: error: is denied, because it will make the index and work tree inconsistent<br \/>\nremote: error: with what you pushed, and will require &#8216;git reset &#8211;hard&#8217; to match<br \/>\nremote: error: the work tree to HEAD.<\/p>\n<p>\u3053\u306e\u4e21\u65b9\u3092\u4e00\u6c17\u306b\u5bfe\u51e6\u3057\u305fconfig\u30d5\u30a1\u30a4\u30eb\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n<p>[shell]<br \/>\n[core]<br \/>\n        repositoryformatversion = 0<br \/>\n        filemode = true<br \/>\n        bare = true<br \/>\n        logallrefupdates = true<br \/>\n[http]<br \/>\n        receivepack = true<\/p>\n<p>[\/shell]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>git\u30ea\u30dd\u30b8\u30c8\u30ea\u306bWeb\u7d4c\u7531\u3067PUSH \/var\/log\/httpd\/error &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2015\/09\/08\/git-http%e7%b5%8c%e7%94%b1%e3%81%a7%e3%81%aepush%e3%81%ab%e5%a4%b1%e6%95%97\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[398,366],"_links":{"self":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2189"}],"collection":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/comments?post=2189"}],"version-history":[{"count":1,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2189\/revisions"}],"predecessor-version":[{"id":2190,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2189\/revisions\/2190"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=2189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=2189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=2189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}