简体   繁体   中英

How to fix git messup after 'git svn rebase'?

I had a clean working git(-svn) repository with a lot of new commits. Let's label this the 'original' state.

Then I made a git svn rebase which gave a lot of conflicts and the choices:

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To check out the original branch and stop rebasing run "git rebase --abort".

Also, all the commits I have made are gone (ie git log ) does not show them anymore.

How can I get to the above described 'original' state? Ie the state I have been in BEFORE I typed the command git svn rebase ? I do not quite understand what the mentioned choices really mean...

Do as the help text advices:

git rebase --abort

This will return you to the state before the rebase began.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM