{"id":1238,"date":"2016-12-09T17:28:47","date_gmt":"2016-12-09T08:28:47","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=1238"},"modified":"2018-05-19T03:05:35","modified_gmt":"2018-05-18T18:05:35","slug":"git-push-gc-%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b-out-of-memory-%e3%82%92%e5%9b%9e%e9%81%bf","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/1238","title":{"rendered":"[git] push \u306b\u304a\u3051\u308b\u30e1\u30e2\u30ea\u4e0d\u8db3\u56de\u907f"},"content":{"rendered":"<p><code>git push<\/code> \u3084\u3001\u305d\u306e\u524d\u6bb5\u306b\u5b9f\u884c\u3055\u308c\u308b <code>git gc --auto<\/code> \u3067\u767a\u751f\u3059\u308b\u30e1\u30e2\u30ea\u4e0d\u8db3(out of memory)\u3092\u56de\u907f\u3059\u308b\u65b9\u6cd5<\/p>\n<p><!--more--><\/p>\n<h2>(\u56de\u907f\u7b561) \u540c\u6642\u4e26\u884c\u3067\u52d5\u4f5c\u3059\u308b\u30b9\u30ec\u30c3\u30c9\u6570\u3092\u6e1b\u3089\u3059<\/h2>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ git config --global pack.threads \"1\"<\/pre>\n<p>&nbsp;<\/p>\n<h2>(\u56de\u907f\u7b562) window memory\u306e\u30b5\u30a4\u30ba\u3092\u5c0f\u3055\u304f\u3059\u308b<\/h2>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ git config --global pack.windowMemory \"512m\"<\/pre>\n<p>\u203b .gitconfig \u3084 .git\/config \u3092\u76f4\u63a5\u7de8\u96c6\u3057\u3066\u3082OK\u3002 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>git push \u3084\u3001\u305d\u306e\u524d\u6bb5\u306b\u5b9f\u884c\u3055\u308c\u308b git gc &#8211;auto \u3067\u767a\u751f\u3059\u308b\u30e1\u30e2\u30ea\u4e0d\u8db3(out of memory)\u3092\u56de\u907f\u3059\u308b\u65b9\u6cd5<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[2],"class_list":["post-1238","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\/1238","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=1238"}],"version-history":[{"count":6,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1238\/revisions"}],"predecessor-version":[{"id":2388,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1238\/revisions\/2388"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=1238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=1238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=1238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}