1.錯誤以下java
主要緣由是安全設置的問題:git
首先執行git config http.sslVerify "false" 若出現下列錯誤 安全
git config http.sslVerify "false" fatal: not in a git directory post
再繼續執行 git config --global http.sslVerify "false" 問題解決spa
2.錯誤以下code
緣由:若是 git 項目太大,拉代碼的時候可能會出現這個錯誤,http.postBuffer默認上限爲1M。blog
解決辦法:增大緩衝區大小,在git的配置裏將http.postBuffer變量改大一些便可,好比將上限設爲500M:ssl
git config --global http.postBuffer 524288000it
// 524288000 的單位表明 B,524288000B 也就是 500MB。 // 這個值的大小,可自行酌情設置。