Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+20 votes
asked in CSC305 Fall 2022 by (1 point)
+2

I wish this was asked sooner. It would have saved so much confusion!

1 Answer

+9 votes

If the editor is vim, then:

ESC :wq

However, I recommend configuring git to use nano instead.

git config --global core.editor nano

Then use CONTROL+X to exit (although you may be prompted to save if you made changes).

answered by (508 points)
+3

Thank you!

...