当仓库文件过大时,git会报一个突然终止的错误,没办法正确提交和下载:
fatal: The remote end hung up unexpectedly
解决方法为设置postBuffer属性:
git config --global http.postBuffer 524288000
或者可以尝试再增大一倍:
git config --global http.postBuffer 1048576000
重新push或clone即可。
git使用pull命令/clone命令等都会出现错误,原因:没有配置ssh版本
git config --global http.sslVersion tlsv1.2
git checkout master
git branch | grep -v 'master' | xargs git branch -D
kex_exchange_identification: read: Connection reset by peer
Connection reset by 14.22.4.190 port 22
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
系统偏好设置-> 共享 -> 远程登录 打开即可