錯誤1:Git: fatal: The remote end hung up unexpectedly
解決辦法:
> git config --global http.postBuffer 1048576000
> git config --global http.postBuffer 1048576000
錯誤2:Git error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
錯誤信息:
Total 116323 (delta 81906), reused 116320 (delta 81905)
POST git-receive-pack (130907163 bytes)
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
git 在 pull 或者 push 一個大項目時,可能會碰到出現(xiàn)如題所示的錯誤。
解決辦法:
網(wǎng)絡(luò)上往往都會說這是由于大文件造成的提交或者拉取失敗。但是,經(jīng)過本人測試,如果是 errno 56,那么應(yīng)該是有大文件或者提交緩存方面的問題。而 errno 54 則不是這個問題。對于 56 錯誤的解決方式與網(wǎng)絡(luò)上大部分文章的一致。都是增大緩存配置,比如下面就是配置提交緩存為 500M。
> git config http.postBuffer 524288000
> git config https.postBuffer 524288000
對于 errno 54 這個錯誤,經(jīng)嘗試 http 或者 https 協(xié)議都無法正常提交。必須改為 ssh 方式來提交代碼。也就是必須使用公私鑰的方式進行賬號驗證,并提交代碼。
Git配置SSH Key請參考?Git配置SSH Key
錯誤3:error:The branch ‘testing’ is not fully merged
解決辦法:強制刪除
# 普通刪除
> git branch -d branch_name
# 強制刪除
> git branch -D branch_name
錯誤4:fatal:multiple stage entries for merged file
> rm .git/index
> git add -A
> git commit