gitgitbucket

How to quit this comment in Git Bash


enter image description here

While I use Git Bash ,I encountered this phenomenon,but I can't return command terminal. How to solve this problem and what is the reason such phenomenon is occurred?


Solution

  • press esc then :q! to exit vim without save.

    and next time try to pull or merge with option --no-edit to commit without changing its commit message.