{"id":735,"date":"2019-01-14T12:12:06","date_gmt":"2019-01-13T23:12:06","guid":{"rendered":"https:\/\/content.ronella.xyz\/apps\/wordpress\/?p=735"},"modified":"2019-08-18T21:53:20","modified_gmt":"2019-08-18T09:53:20","slug":"pushing-a-more-than-1mb-file-via-http","status":"publish","type":"post","link":"https:\/\/www.ronella.xyz\/?p=735","title":{"rendered":"Pushing files with More than 1MB in Size via HTTP in Git"},"content":{"rendered":"<p>For some reason, you have files with more than 1MB in total size to push to git respository by HTTP. You might be surprised that you cannot do it. This is because by default, git only posts to remote server via HTTP protocol with a maximum of 1MB. To remedy this, increase the <strong>http.postBuffer<\/strong>\u00a0to <strong>500MB<\/strong>\u00a0<em>(i.e. if you have to send files with 500MB total size)<\/em> on <strong>client side<\/strong>\u00a0like the following:<\/p>\n<pre>git config --global http.postBuffer 524288000<\/pre>\n<p><strong>Reference<\/strong><\/p>\n<p><a href=\"https:\/\/mirrors.edge.kernel.org\/pub\/software\/scm\/git\/docs\/git-config.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/mirrors.edge.kernel.org\/pub\/software\/scm\/git\/docs\/git-config.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For some reason, you have files with more than 1MB in total size to push to git respository by HTTP. You might be surprised that you cannot do it. This is because by default, git only posts to remote server via HTTP protocol with a maximum of 1MB. To remedy this, increase the http.postBuffer\u00a0to 500MB\u00a0(i.e. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[20,25],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/735"}],"collection":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=735"}],"version-history":[{"count":9,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/735\/revisions"}],"predecessor-version":[{"id":812,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/735\/revisions\/812"}],"wp:attachment":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}