Igor Simic
7 years ago

Stuck in Git terminal or Vim


If you ever get stuck by using git command line it can be really annoying to exit if you don't know how. So when this happened most likely you are not git any more but in Vim! 
If you see message like this: "please enter a commit message ..." here is what you can do:
 

To exit terminal type:
:quit  <press enter>

or
:wq  <press enter>
or
<esc> :wq <press enter>

or you can use this:

  1. press "i"
  2. write your merge message
  3. press "esc"
  4. write ":wq"
  5. then press enter