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.
Asked
Active
Viewed 2,398 times
0

SevenEleven
- 2,326
- 2
- 32
- 32

jinxin ni
- 129
- 1
- 2
- 9
-
What do you mean "save"? You either commit or not, there's no way to "save" – m0skit0 Nov 30 '15 at 20:42
2 Answers
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