rebase in progress. Cannot commit. How to proceed or stop (abort)?

后端 未结 9 1361
鱼传尺愫
鱼传尺愫 2020-12-12 12:46

When I run:

git status

I see this:

rebase in progress; onto 9c168a5
You are currently rebasing branch \'master\' on \'9c1         


        
9条回答
  •  感情败类
    2020-12-12 12:55

    • Step 1: Keep going git rebase --continue

    • Step 2: fix CONFLICTS then git add .

    • Back to step 1, now if it says no changes .. then run git rebase --skip and go back to step 1

    • If you just want to quit rebase run git rebase --abort

    • Once all changes are done run git commit -m "rebase complete" and you are done.


    Note: If you don't know what's going on and just want to go back to where the repo was, then just do:

    git rebase --abort
    

    Read about rebase: git-rebase doc

提交回复
热议问题