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

后端 未结 9 1389
鱼传尺愫
鱼传尺愫 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:57

    I got stuck in 'rebase status', I got

    On branch master
    Your branch is up to date with 'origin/master'.
    
    You are currently rebasing.
      (all conflicts fixed: run "git rebase --continue")
    
    nothing to commit, working tree clean
    

    but running git rebase --skip yielded error: could not read '.git/rebase-apply/head-name': No such file or directory.

    Running rm -fr ".git/rebase-apply" helped.

    Note: of course, do it only if you don't care about the rebase or if you're stuck on a previous rebase you don't want anymore.

提交回复
热议问题