【发布时间】:2010-12-14 06:16:00
【问题描述】:
git version 1.7.1
svn, version 1.6.12
Ubuntu 10.10
我只有 git,我用过 svn。但是我没有一起用过。我有一个 git 存储库,我不得不将我的存储库更多地添加到一个 subversion 存储库。所以我一直在使用 git-svn。大多数情况下,哪个工作正常。但是,我发现在兜圈子。
我是唯一一个在这个项目上工作的人。
我对我的分支进行了一些更改。然后我将它们上演:
git stage gateway.c
然后将它们本地提交到 git:
git commit m"Made some changes"
然后我想将它们提交给颠覆。获取最新更新:
git svn rebase
然后我收到以下消息:
It seems that I cannot create a rebase-apply directory, and
I wonder if you are in the middle of patch application or another
rebase. If that is not the case, please
rm -fr /home/joe/projects/gateway/.git/rebase-apply
and run me again. I am stopping in case you still have something
valuable there.
rebase refs/remotes/trunk: command returned error: 1
I then doing the following:
rm -fr /home/joe/projects/gateway/.git/rebase-apply
然后我再次做一个变基:
git svn rebase
消息是这样的:
First, rewinding head to replay your work on top of it...
Applying: Issue with getting the port from the user context.
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
Auto-merging driver.c
Auto-merging gateway.c
CONFLICT (content): Merge conflict in gateway.c
Failed to merge in the changes.
Patch failed at 0001 Issue with getting the port from the user context.
When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".
rebase refs/remotes/trunk: command returned error: 1
这把我放在一个叫什么的分支上,这个分支是什么,它是干什么用的?:
*(no branch)
然后我解决该分支的冲突。然后我检查我的 play_video 分支。我尝试制作另一个:
svn git dcommit
最后我又绕了一圈。
在我开始拔头发之前,可以给我一些建议吗?
非常感谢您的任何建议,
【问题讨论】:
-
在这里遇到同样的问题...快 3 年了,没有任何建议...