(Using Debian Linux, KDE, Konsole and bash.)
When I run git log, I can't read the full commit message. I see the beginning of the sentence but if it's too long, I can't see it.
Also I am not seeing entries with multiple lines.
How can I see the full git log entry?
A simple fix is to pass the --pretty=oneline parameter, which makes it all fit on a single line. It's taking up less space, but missing crucial information like the date of the commit. There are longer versions of that same --pretty parameter. In fact, it allows you to specify all the fields you want in the output.
Git Log OnelineThe oneline option is used to display the output as one commit per line. It also shows the output in brief like the first seven characters of the commit SHA and the commit message. It will be used as follows: $ git log --oneline.
To exit git log, type “q” or “z”.
To do this, add single or double quotes before typing the message, keep pressing enter and writing the next line, and finally close the quote at end of the message. This works fine in Bash, however, it doesn't let you enter the command until you close the quotes.
did you try pressing the right-arrow button to see those long lines?
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