1
我想使用Git扩展将自托管服务器存储库推送到Git。我能做到这一点OK使用命令行,但使用Git扩展它与消息出现:GIT扩展 - 推 - “致命:远程端意外挂断”
c:\Program Files (x86)\Git\bin\git.exe push --recurse-submodules=check "Specflow.Infrastructure.git" master:master
Done
fatal: The remote end hung up unexpectedly
我尝试了所有这些组合存储库的:
ssh://[email protected]/path/to/repository.git
ssh://192.168.0.1/path/to/repository.git
[email protected]/path/to/repository.git
192.168.0.1/path/to/repository.git
但同样的问题。但是,当我运行错误中提到的命令:
c:\Program Files (x86)\Git\bin\git.exe push --recurse-submodules=check "Specflow.Infrastructure.git" master:master
它的工作原理!
我读了一些关于设置HOME
环境变量为您的主目录。我检查这个目录是否包含.ssh
文件夹,并且确实包含正确的细节。所以我设置了HOME
变量并重新启动了我的机器。同样的问题!
对于这个问题的其他答案是类似但不同的情况,其中在“完成”和“致命”之间产生特定的错误消息,因此需要这个问题。
解决了我的问题! :) – Oyvind 2012-08-14 14:11:56