重新设置/更新git-svn存储库时出错 [英] Error rebaseing/updating a git-svn repository

查看:947
本文介绍了重新设置/更新git-svn存储库时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望这不是一个dup,我没有找到关于如何更新git-svn repo的简明信息。我用git svn clone将SVN回购导入git。然后,在做了一些提交之后,我想重新考虑原始SVN回购。

  C:\Work\ osqa> git svn rebase 
从git-svn v1布局迁移...
存在git-svn以前版本的数据,但
.git / svn
(必需对于这个版本(1.7.3.1.msysgit.0)的git-svn)并不存在
t。
完成从git-svn v1布局迁移
forum / views / readers.py:需要更新
update-index --refresh:命令返回错误:1

当我再次重复git svn rebase命令时,我只收到了最后一条消息的尾部:

  C:\Work\osqa> git svn rebase 
forum / views / readers.py:需要更新
update- index --refresh:command返回错误:1

我不确定错误信息的含义。你可以帮助解决它吗?如果我没有记错,这意味着该文件有未提交的更改。什么是 git status


的输出

Hoping this is not a dup, I didn't find any concise information on how to update a git-svn repo. I used git svn clone to import an SVN repo into git. Then, after doing some commits, I wanted to rebase with regards to the original SVN repo.

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

When I repeated the git svn rebase command a second time, I got just the tail of the last message:

C:\Work\osqa>git svn rebase
forum/views/readers.py: needs update
update-index --refresh: command returned error: 1

I'm not sure what the error message means. Can you help resolve it?

解决方案

If I recall correctly, that means that there are uncommitted changes to that file. What's the output of git status?

这篇关于重新设置/更新git-svn存储库时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆