如果对象> git push通过ssh到Bitbucket会失败20KB?

时间:2016-12-21 17:50:59

标签: git ssh push bitbucket git-push

我一直在努力推动我的Bitbucket回购,这似乎与文件大小有关。我尝试用foo.txt(我在OSX上)重复覆盖虚拟文件gtruncate -s <file_size> foo.txt,文件大小越来越大,提交和推送。似乎如果写的git对象的总大小是> 20Kb,推动失败。样本输出:

Writing objects: 100% (3/3), 10.23 KiB | 0 bytes/s, done. Total 3 (delta 1), reused 0 (delta 0) To git@bitbucket.org:wkc1986/myrepo.git 1678ffd..e821280 master -> master

Writing objects: 100% (3/3), 15.20 KiB | 0 bytes/s, done. Total 3 (delta 1), reused 0 (delta 0) To git@bitbucket.org:wkc1986/myrepo.git b59c4dd..4da53c7 master -> master

Writing objects: 100% (3/3), 18.19 KiB | 0 bytes/s, done. Total 3 (delta 1), reused 0 (delta 0) To git@bitbucket.org:wkc1986/myrepo.git 925ff96..7aa9383 master -> master

Writing objects: 100% (3/3), 19.18 KiB | 0 bytes/s, done. Total 3 (delta 1), reused 0 (delta 0) To git@bitbucket.org:wkc1986/myrepo.git 63c6d43..fac8697 master -> master

Writing objects: 100% (3/3), 20.17 KiB | 0 bytes/s, done. Total 3 (delta 1), reused 0 (delta 0) Write failed: Broken pipe fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly

这确实有问题,因为我无法从当前文件大小预测git对象的大小。我尝试过编辑~/.ssh/config,但似乎没有帮助:

Host * TCPKeepAlive yes ServerAliveInterval 5 ServerAliveCountMax 5

0 个答案:

没有答案