You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set it once and to update your personal global git configuration. It will apply to all of your git repositories in this machine.
I find this pager configuration useful in several ways.
The -X option does not clear the screen when you quit the pager and provides an interesting side effect.
It keeps the command output (log) in the screen history.
Say you run git log this opens up the output of the command in the pager.
Once you quit the pager, the screen is not blanked, and you can scroll back to see the log output.
Without the -X option, the log output is not part of the scroll back history.
It is a matter of personal preference, but I find it useful to be able to scroll back and see the output of previous git log command. This also works for whatever git command that generates an output longer than one page.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Set it once and to update your personal global git configuration. It will apply to all of your git repositories in this machine.
I find this pager configuration useful in several ways.
The
-Xoption does not clear the screen when you quit the pager and provides an interesting side effect.It keeps the command output (log) in the screen history.
Say you run git log this opens up the output of the command in the pager.
Once you quit the pager, the screen is not blanked, and you can scroll back to see the log output.
Without the
-Xoption, the log output is not part of the scroll back history.It is a matter of personal preference, but I find it useful to be able to scroll back and see the output of previous git log command. This also works for whatever git command that generates an output longer than one page.
Beta Was this translation helpful? Give feedback.
All reactions