Using Windows XP I accidentally typed git commit -a
instead of git commit -am "My commit message"
, and now I'm viewing my CMD prompt filled with the file version of my commit message ("Please enter the commit message for your..."). I've added my message to the top, but now I can't figure out how to save and leave. I tried to press Ctrl + W + Q, but it doesn't do anything, but add ^
where the cursor is.
I also tried Esc first, and then Ctrl + W + Q, but it says No write since last change (add ! to override)
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…