git version 1.7.1
svn, version 1.6.12
Ubuntu 10.10
Run Code Online (Sandbox Code Playgroud)
我只是git而且我使用过svn.但我没有一起使用过.我有一个git存储库,我不得不将我的存储库更多地转换为subversion版本.所以我一直在使用git-svn.大部分时间都可以.但是,我发现围成一圈.
我是唯一一个从事这个项目的人.
我对我的分支进行了一些更改.我然后上演他们:
git stage gateway.c
Run Code Online (Sandbox Code Playgroud)
然后在本地将它们提交给git:
git commit m"Made some changes"
Run Code Online (Sandbox Code Playgroud)
然后我想将它们提交给颠覆.获取最新更新:
git svn rebase
Run Code Online (Sandbox Code Playgroud)
然后我收到以下消息:
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
Run Code Online (Sandbox Code Playgroud)
然后我又做了一次改变:
git svn rebase
Run Code Online (Sandbox Code Playgroud)
消息是这样的:
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
Run Code Online (Sandbox Code Playgroud)
这使我成为一个叫做分支的分支,这个分支是什么?它是什么?:
*(no branch)
Run Code Online (Sandbox Code Playgroud)
然后我解决了该分支的冲突.然后我检查我的play_video分支.我试着做另一个:
svn git dcommit
Run Code Online (Sandbox Code Playgroud)
我最终又转圈圈了.
在我开始拔头发之前,有些人可以给我一些建议,
非常感谢任何建议,
没有完整的答案,但似乎可以肯定的是:
*(no branch)
Run Code Online (Sandbox Code Playgroud)
意味着您最终处于DETACHED HEADgit svn 上下文中看到的模式“我可以使用本地跟踪 git-svn 分支恢复 SVN 存储库中丢失的提交吗? ”。
另请参阅“为什么 git 分离了我的头? ”。
所以请确保:
dcommit的 SVN 存储库中存在一个分支(而不是纯本地 Git 分支)| 归档时间: |
|
| 查看次数: |
7117 次 |
| 最近记录: |