Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git log - line too long - no line break

Tags:

git

(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?

like image 529
James Mitch Avatar asked Feb 15 '13 17:02

James Mitch


People also ask

How do I make my git log pretty?

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.

What is git log -- Oneline?

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.

How do I stop git log in terminal?

To exit git log, type “q” or “z”.

How do I break a line in git bash?

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.


1 Answers

did you try pressing the right-arrow button to see those long lines?

like image 109
Chronial Avatar answered Oct 15 '22 16:10

Chronial