I'm trying to learn Git with the help of Git Immersion.
There's one thing that frustrates me whenever I use git log
or git diff
:
I can't figure out what to do next when I encounter this (END)
word.
I can't type any commands, and I end up closing the current Bash window and open another. How do I type in the next command that I want to use?
Just press 'q' button to exit from interactive mode.
You typically can use the arrow keys to scroll up or down, and can exit by pressing q.
by going to the parent folder with cd .. and removing the . git folder in all child folders with the -r option you are telling people that it is ok to destroy all local copies of their repositories on their machines, potentially.
You're in the less
program, which makes the output of git log
scrollable.
Type q to exit this screen. Type h to get help.
If you don't want to read the output in a pager and want it to be just printed to the terminal define the environment variable GIT_PAGER
to cat
or set core.pager
to cat
(execute git config --global core.pager cat
).
Actually, there are three ways to do it, precisely.
Type any of the following 3 commands.
P.S.: Sometimes, for someone, one of these options doesn't seem to work and for others it works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With