0

I was stuck in windows cmd when I try to use git commit -a after I enter the message I dont't know how to save and quit.

SevenEleven
  • 2,076
  • 2
  • 31
  • 30
jinxin ni
  • 129
  • 1
  • 2
  • 9

2 Answers2

0

After you have typed in your message, you have to press Esc (for leaving insert mode) and then

:wq

This has been discussed here: VIM for Windows - What do I type to save and exit from a file?

Community
  • 1
  • 1
SevenEleven
  • 2,076
  • 2
  • 31
  • 30
0

Perhaps, if you have some difficulties to use vim to write your commit message, you should configure an editor more in the habits of windows users: https://stackoverflow.com/a/773973/717372

Community
  • 1
  • 1
Philippe
  • 24,487
  • 5
  • 44
  • 70