我使用的是远程git托管服务(Svnrepository.com)。当我使用git 1.7.x作为客户端时,我可以成功地访问git存储库,但是一旦我将客户端升级到git 1.8.x,我就不能再推送:the push hangs。托管服务的支持人员声称,这是因为他们使用的是不支持1.8版的旧版git服务器。
应请求,这里是GIT_TRACE=1
的跟踪。它看起来像是在运行git-http-push
时挂起
$ GIT_TRACE=1 git push -v
trace: built-in: git 'push' '-v'
Pushing to https://secure2.svnrepository.com/redacted/redacted/
trace: run_command: 'git-remote-https' 'origin' 'https://secure2.svnrepository.com/redacted/redacted/'
trace: run_command: 'http-push' '--helper-status' '--verbose' 'https://secure2.svnrepository.com/redacted/redacted/' 'refs/heads/master:refs/heads/master'
trace: exec: 'git' 'http-push' '--helper-status' '--verbose' 'https://secure2.svnrepository.com/redacted/redacted/' 'refs/heads/master:refs/heads/master'
trace: exec: 'git-http-push' '--helper-status' '--verbose' 'https://secure2.svnrepository.com/redacted/redacted/' 'refs/heads/master:refs/heads/master'
trace: run_command: 'git-http-push' '--helper-status' '--verbose' 'https://secure2.svnrepository.com/redacted/redacted/' 'refs/heads/master:refs/heads/master'
它在输出的最后一行之后挂起。(如果您愿意,也可以在我设置了GIT_TRACE=1
和GIT_CURL_VERBOSE=1
的地方执行look at a trace。)
发布于 2013-07-15 23:59:30
想要运行更新版本的git是可以理解的,但是如果你选择的主机没有运行当前版本,你为什么不切换主机呢?仅从名字上看,Svnrepository.com听起来并不像是专注于Git托管。如果托管服务不是你可以改变的,那么在你路径之外的某个地方安装git1.7而正常安装1.8怎么样?然后你可以将1.7版本链接到类似oldgit
的东西,当你需要使用Svnrepostiory.com时,你的命令将像oldgit add
,oldgit commit
,oldgit push
。
发布于 2013-07-17 15:03:58
Svnrepository.com页面上写着“标准特性: Git over SSH”,看起来你是通过http:访问的,这对于只读访问可能是很好的。如果您查看文本文件.git/config,您应该会看到一个remote "origin“部分,并且'url‘值可以设置为host:/path/on/remote/machine的格式,这意味着Git的SSH连接
https://stackoverflow.com/questions/14927591
复制相似问题