Both git log
and git show
use your configured pager, by default. It's your pager, not Git, that is doing the off-edge-of-screen management.
You can:
- temporarily change your pager:
git -c core.pager=cat show ...
, for instance;
- temporarily disable your pager:
git --no-pager show ...
, for instance;
- pipe the output, which by default disables pagers (but you can configure the system to always use the pager, which defeats this defeat method):
git show ... | cat
, for instance.
Besides these, you can use a --pretty=format:...
or --format=
directive to git log
to specify how the commits are to be shown. Using:
git log -1 --format=%s <hash>
will show that one commit (using the pager, unless you've disabled it) using a format that shows only the subject line.