Why do this: when I hit the git log command
When I hit git log command to see all the commits made I see ->
commit: bla bla
Author: bla bla
Date: bla bla
:
it's ok to see this information, but after the last one, :
I can't print anything. If I try to print anything I get to see (END)
nothing else with a sound error. I can no longer use git to force the completion console and restart everything to use git again. What should I be typing after :
, so I get out of it?
source to share
:
, you see, this is the command line for the pager loaded to read the log. Most likely less
; which is used by git by default. To exit the invitation typeq
This parameter can be configured with core.pager
.
For example, if you set it to empty:
git config --global core.pager ""
Then you will see all the log messages at once, without pagination; that is, without prompting :
. However, you can keep it as is, and explore these helpful shortcuts instead:
g: go top of the file
G: go bottom of the file
/: search forward
?: search backward
N: show line number
: goto line
F: similar to tail -f, stop with ctrl+c
S: split lines
There is much more information on the pageless
.
source to share