git exit with full screen

1. Exit from git log.
If there are more commits, there will be more content in git log; when the screen is full, it will display a colon, enter (scroll down one line), and space (scroll down one page) You can continue to view the remaining content; Exit: Press q in English to exit the git log status.
Insert picture description here

2.
When the command does not carry the -m parameter , git commit will pop up the commit change log (COMMIT_EDITMSG) interface (as shown below). This is the vi editor (or vim editor), which is the same as when using linux , Because it involves whether to save the edited content, so there are many exit commands.

2.1 Save and exit:
(1) Press Esc to exit the editing mode, enter: wq in English mode, and then press Enter (write and quit).

(2) Press Esc to exit the editing mode, enter ZZ in uppercase English mode, and then press Enter.

2.2 Exit without saving:
Press Esc to exit the editing mode, enter: q! in English mode, and then press Enter.

Press Esc to exit the editing mode, enter: qa! in English mode, and then press Enter.

Guess you like

Origin blog.csdn.net/qq_38686150/article/details/113710766