首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >git 1.8客户端与较早版本的git服务器之间的兼容性问题

git 1.8客户端与较早版本的git服务器之间的兼容性问题
EN

Stack Overflow用户
提问于 2013-02-18 07:59:25
回答 2查看 2.6K关注 0票数 17

我使用的是远程git托管服务(Svnrepository.com)。当我使用git 1.7.x作为客户端时,我可以成功地访问git存储库,但是一旦我将客户端升级到git 1.8.x,我就不能再推送:the push hangs。托管服务的支持人员声称,这是因为他们使用的是不支持1.8版的旧版git服务器。

  1. 如何在旧的git服务器上使用Git1.8作为客户端?
  2. 有没有人知道确切的不兼容性是什么?
  3. 从支持中得到的声明听起来可信吗?
  4. 有没有人知道确切的不兼容性是什么?出于某种原因,我曾认为git具有极好的向后/向前兼容性,没有理由担心升级会破坏git
  5. 在1.7->1.8转换中引入了一些已知的不兼容性,会导致这种情况吗?

应请求,这里是GIT_TRACE=1的跟踪。它看起来像是在运行git-http-push时挂起

代码语言:javascript
复制
$ 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=1GIT_CURL_VERBOSE=1的地方执行look at a trace。)

EN

回答 2

Stack Overflow用户

发布于 2013-07-15 23:59:30

想要运行更新版本的git是可以理解的,但是如果你选择的主机没有运行当前版本,你为什么不切换主机呢?仅从名字上看,Svnrepository.com听起来并不像是专注于Git托管。如果托管服务不是你可以改变的,那么在你路径之外的某个地方安装git1.7而正常安装1.8怎么样?然后你可以将1.7版本链接到类似oldgit的东西,当你需要使用Svnrepostiory.com时,你的命令将像oldgit addoldgit commitoldgit push

票数 1
EN

Stack Overflow用户

发布于 2013-07-17 15:03:58

Svnrepository.com页面上写着“标准特性: Git over SSH”,看起来你是通过http:访问的,这对于只读访问可能是很好的。如果您查看文本文件.git/config,您应该会看到一个remote "origin“部分,并且'url‘值可以设置为host:/path/on/remote/machine的格式,这意味着Git的SSH连接

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14927591

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档