Git 處理大容量倉庫

Git 處理大容量倉庫

在使用Git 同步或上傳代碼時,若容量過大,會報如下錯誤:
error: RPC failed; HTTP 404 curl 22 The requested URL returned error: 404 Not Found
解決方法有很多,參見:
https://dzone.com/articles/how-to-handle-big-repositories-with-git

也可以用如下方法處理:

git config --global http.postBuffer 500M					//這個值可以根據情況做調整
git config --global http.maxRequestBuffer 100M				//這個值可以根據情況做調整
git config --global core.compression 0

將同步代碼方式由http換成ssh也是可行的

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章