我正在使用git-svn.我已将文件'A'移动到'B',并且我最近使用了svn HEAD(使用git svn rebase).我可以毫无问题地提交所有其他更改.现在我已经决定将'B'移回'A'并提交更改.
当我执行移动并提交给我的本地主人时,它工作正常,但在执行以下操作时我得到以下内容git svn dcommit:
Transaction is out of date: Out of date: 'A' in transaction '3652-1' at /opt/local/libexec/git-core/git-svn line 570
Run Code Online (Sandbox Code Playgroud)
所以我尝试在单独的提交中复制和删除导致:
Item already exists in filesystem: File already exists: filesystem '/usr/svn/db', transaction '3652-1', path 'A' at /opt/local/libexec/git-core/git-svn line 4735
Run Code Online (Sandbox Code Playgroud)
通过使用文档中描述的解决方法,我使用普通的svn恢复了这种情况,但我不知道如何使用git-svn进行恢复.发生了什么,我该如何解决?
删除.git/svn对我不起作用.相反,这是我解决的方式:
git svn rebasegit add <file-in-conflict>然后git rebase --continuegit svn dcommit运行成功!