git push 413問題解決

用git好長時間了,今天提交的時候遇到了一個問題git push
然後
Enumerating objects: 342, done. Delta compression using up to 8 threads Total 298 (delta 46), reused 0 (delta 0) RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 the remote end hung up unexpectedly the remote end hung up unexpectedly
。。。網上各種查,發現是提交的文件太大,導致不能通過
後來查到改下git配置

git config --global http.postBuffer 52428800
改爲最大50M,
然後提交,還是不行,後來查到可改爲ssh提交
方式如下 不再贅述
https://www.cnblogs.com/lihaiping/p/6021813.html
需要注意的是我用的是碼雲賬號所以,
git config --global user.name “這裏填用戶名(任意的)”

git config --global user.email “這裏填你的郵箱地址(最好是你註冊碼雲的郵箱)”
最後ojbk

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