newtfire / digitProjectDesign-Hub

shared repo for DIGIT 400: Digital Project Design class at Penn State Erie, The Behrend College
Creative Commons Zero v1.0 Universal
12 stars 2 forks source link

How to exit the GitBash text editor #8

Closed JeremyF5737 closed 3 years ago

JeremyF5737 commented 4 years ago

When some users go through GitBash for the first time and type in their login credentials (usually when typing a commit message) they might be taken to a terminal that looks like this.

image

This can be exited by using the following steps

Step 1: press "i" on the keyboard. At the bottom of the screen there should be a line that says INSERT

image

Step 2: press the keys in the following order "Esc" then ":" (you can type this by using Shift+;) then press "w" , and finally "q"

Step3: hit "Enter" and you will be back to the original editor. Keep in mind you can just press the up arrow key to find your original commit message and publish your message.

ebeshero commented 4 years ago

Thanks for posting this, @JeremyF5737 ! Here's a quick shorthand: Press I to insert. (make edits if you need to) Exit with: [Esc] : w q