git 仓库文件过大 push报错

fatal: 远端意外挂断了/ The remote end hung up unexpectedly

1
2
3
4
5
6
7
8
9
10
11
12
git config http.postBuffer 524288000
git config ssh.postBuffer 524288000

git config http.version HTTP/1.1

# 用ssh代替http/https
git remote set-url origin git@your-git.com
git remote -v

# 压缩
git config core.compression 3