从远程主机读取:连接已中止

时间:2014-12-02 11:12:25

标签: git

当它太大或文件太多时,我无法将我的提交推送到遥控器。

我可以pull

P:\wamp\www>git pull
myuser@myserver.ovh.net's password:
Already up-to-date.

但我不能push

P:\wamp\www>git push
myuser@myserver.ovh.net's password:
Counting objects: 170, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (31/31), done.
Writing objects: 100% (32/32), 767.20 KiB | 0 bytes/s, done.
Total 32 (delta 24), reused 0 (delta 0)
Read from remote host myserver.ovh.net: The connection was aborted
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

我在google和这里搜索了the solution of increasing git buffer doesn't work

有关信息,

P:\wamp\www>git remote -v
origin  ssh://myuser@myserver.ovh.net/home/myuser/repo (fetch)
origin  ssh://myuser@myserver.ovh.net/home/myuser/repo (push)

我重新启动了VPS,结果相同。

在电影评论之后,我还尝试了git push origin mastereverything is up to date

编辑:为了澄清,我想推送一个分支,但是git push origin mybranch给了我同样的错误信息。

1 个答案:

答案 0 :(得分:1)

我终于找到了一个解决方案,我不得不更新我当前的分支以摆脱这个错误,每次我的提交都太大时就会发生:

git pull origin mybranch

之后,一切正常。