我git svn -s clone首先使用来克隆了一个回购
svn+ssh://savannah.psi.ch/afs/psi.ch/project/meg/svn/elog
Run Code Online (Sandbox Code Playgroud)
但后来回购已改为
svn+ssh://svn@savannah.psi.ch/repos/meg/elog
Run Code Online (Sandbox Code Playgroud)
然后我编辑.git/config文件,只需更改下面的行[remote-svn "svn"].然后git svn fetch工作正常,但其他任何svn命令,比如svn info,svn rebase在错误失败:
无法从工作树历史记录中确定上游SVN信息
我搜索了堆栈溢出,之前有人得到了同样的错误,但答案对我不起作用.更改svn-repo地址后我该怎么办?
平台:archlinux; git:1.7.7.3; svn:1.6.17
小智 5
我在使用此解决方案时通过查找revmap问题来到这里,但它获得了变基/获取工作:
http://honk.sigxcpu.org/con/Using_git_svn_when_upstream_moves_the_subversion_repository.html
git config svn-remote.svn.url newUrl
git config svn-remote.svn.rewriteRoot originalUrl
git svn rebase
Run Code Online (Sandbox Code Playgroud)
似乎没有正确使用revmaps进行合并,不确定标签是否仍然有效...
尝试仅删除 .metadata 文件并运行,git svn fetch就像在新的文件之后运行一样git svn init
另一个想法如下所述:http://ciaran-lee.com/2008/06/13/how-to-fix-git-svn-if-the-svn-repo-moves.html
| 归档时间: |
|
| 查看次数: |
551 次 |
| 最近记录: |