Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stuck on git commit window

Tags:

git

I am stuck on this window. i did a git add -a just before and then a git commit in git-cmd.exe . How can i get out of here? i wrote my commit message and press enter and nothing happened.

I'm affraid to just close the window and i find nothing on internet, the official site say nothing about how to validate a commit corectly.

git commit window

like image 404
chacartz Avatar asked Apr 22 '16 00:04

chacartz


1 Answers

You are in a vi editor.

In order to save and exit from vi you need to do this:

To save the changes: ESC + :wq Or: ZZ
To discard the changes: ESC + :q!

(Look on the button of the screenshot how to exit - the last line)

enter image description here

like image 56
CodeWizard Avatar answered Oct 04 '22 01:10

CodeWizard