希望这不是骗局,我没有找到任何关于如何更新 git-svn 存储库的简明信息。我使用 git svn clone 将 SVN 存储库导入到 git 中。然后,在做了一些提交之后,我想对原始 SVN 存储库进行 rebase 。
C:\Work\osqa>git svn rebase
Migrating from a git-svn v1 layout...
Data from a previous version of git-svn exists, but
.git/svn
(required for this version (1.7.3.1.msysgit.0) of git-svn) does not exis
t.
Done migrating from a git-svn v1 layout
forum/views/readers.py: needs update
update-index --refresh: command returned error: 1
当我第二次重复 git svn rebase 命令时,我只得到最后一条消息的尾部:
C:\Work\osqa>git svn rebase
forum/views/readers.py: needs update
update-index --refresh: command returned error: 1
我不确定错误消息的含义。你能帮忙解决吗?
最佳答案
如果我没记错的话,这意味着该文件有未提交的更改。 git status
的输出是什么?
关于svn - 重新设置/更新 git-svn 存储库时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5367734/