I\'m new to Git and the terminal. How can I exit a listing mode generated by the git status command?
first of all you need to setup line ending preferences in termnial
git config --global core.autocrlf input
git config --global core.safecrlf true
Then you can use :q
Before pressing exit commands(q, etc..) check current input language: if it isn't English commands may not work.
Sometimes it is possible that while writing in Gitbash you get into > and you just can not get out of that.
It happens with me quite often while I type ' by mistake in Gitbash(See in the image).
control + C
I have not checked it in Windows. But if it does please edit that in my answer.
exit did it for me.
My results after pressing return;
my-mac:Car Game mymac$ exit
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
q or SHIFT+q will do the trick. This will get you out of many extensive page scrolling sessions like git status, git show HEAD, git diff etc. This will not exit your window or end your session.
Please try this steps in git bash, It may help you.
CTRL + C:qa!