我有一个git-svn配置如下:
[svn-remote "svn"]
rewriteRoot = http://myproject
url = http://myserver/myproject/trunk/proj
fetch = :refs/remotes/git-svn
我公司决定将目录中继移动到v100(修订版xxxxx)。
移动后,我更新了url属性,但我无法再执行git svn rebase
。 git-svn chokes有一些SVN错误(无法从内部替换目录)。
新结帐仅提取比xxxxx更新的修订。
我如何获得所有修订并且仍然有连续的历史记录?
答案 0 :(得分:1)
我认为我们错误地配置了git-svn同步。我们应该使用:
[svn-remote "svn"]
rewriteRoot = http://myproject
url = http://myserver/myproject
fetch = trunk/proj:refs/remotes/git-svn
也就是说,“trunk / proj”应该是“fetch”的一部分。如果我用这个做出新的git svn clone
,我也可以获得以前的版本。