How to abort a git rebase from inside vim during interactive editing

前端 未结 4 1746
孤独总比滥情好
孤独总比滥情好 2020-12-22 17:14

When I do an interactive rebase, e.g.

git rebase -i HEAD~3

the rebase interactive editor (vim in my case) opens to let me edit the commits

4条回答
  •  失恋的感觉
    2020-12-22 17:40

    If you exit the editor with an error code, the rebase will be aborted.

    To exit with an error code on vim, do

    :cq
    

    See here and vimdoc here.

提交回复
热议问题