git rebase and deleted rebasing branches causing “Interactive rebase already started” error message

后端 未结 3 1524
再見小時候
再見小時候 2021-02-12 11:22

I was trying something out with a couple of branches so I rebased on a temporary branch and was in the middle of resolving some conflicts when I decided to not to complete the r

3条回答
  •  我寻月下人不归
    2021-02-12 12:18

    Hm, that's awkward. Recreating the branch would've been my first try too. Failing that, you should be able to remove the .git/rebase-merge directory, which contains the rebase state. (Move it to the side instead to be safe, if you want.) Once that's gone, Git shouldn't have any way to know there was a rebase in progress. Have a look at your branches to make sure you haven't managed to lose any commits in the process, and you'll be good!

提交回复
热议问题