Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

How do I exit from “git log”?

Writer Matthew Martinez

I have just started to use Git on Anaconda (Windows 10). When I do some commits and then I ask the git log, it shows me all the history of my commits but I do not know how to get out from it.

At the beginning I did not have this problem since after typing git log it showed me the history and then I was automatically able to type new commands on my terminal.

Now instead when I type git log, it shows me the history and I do not know how to type new commands (besides the method to close and re-open). How can I fix this ?

I attach the image of what I see.

enter image description here

Thank you in advance.

0

1 Answer

This looks like a pager (less/more?) set in Git itself. Many pagers quit when you press q.

Another preeemptive tip is to use the -n flag to limit the output of git log. Like enter git log -n 3 to only see the last 3 commits.

As for the reason you are now in this situation is simply you are adding more and more commits as your project goes on. So initially it was only one or two commits. But then after you do more and more work, the commit count increases past the amount of commits that can be shown on one screen.

Additionally you may find these links useful:

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy