Git log line is too long - no line break

(Using Debian Linux, KDE, Konsole, and bash.)

When I run git log I cannot read the full commit message. I see the beginning of the sentence, but if it is too long, I do not see it.

Also I do not see entries with multiple lines.

How can I see the full git log entry?

+7
source share
4 answers

If you need to force a default log style, do

git log --format=medium 
+4
source

Have you tried to press the right arrow button to see these long lines?

+8
source

git log | cat git log | cat always a good trick.

+3
source
 $ git config --global core.pager 'less -R' 

Please note that this prevents you from tracking the appearance of the screen, which can lead to various display problems, one of which is long lines broken in the wrong places (this is a side effect that we need)

+1
source

All Articles