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,326
  • 2
  • 32
  • 32
jinxin ni
  • 129
  • 1
  • 2
  • 9

2 Answers2

1

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,326
  • 2
  • 32
  • 32
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
  • 28,207
  • 6
  • 54
  • 78