How do I stop a Git commit when VI is on the screen waiting for a commit message?

后端 未结 3 1288
隐瞒了意图╮
隐瞒了意图╮ 2021-01-29 17:46

I have asked Git to perform a commit from within git bash, It has brought up VI as it always does.

I now wish to cancel the commit, how do I prevent proceeding with the

3条回答
  •  一向
    一向 (楼主)
    2021-01-29 18:18

    • :q! does not work when amending a commit. It does not update the commit message, but it executes the amendment :-(
    • :cq completely aborts the amendment.

提交回复
热议问题