A
A
Alexis178422015-08-17 14:18:43
git
Alexis17842, 2015-08-17 14:18:43

The git log command prints only part of the commit comment on the command line. How can I set up full display?

Hello!
Installed Ubuntu 14.04 and git.
Does the git log command in the console output only part of the commit comment?
How can I set up full display, preferably on the command line itself?
Are there any options for the amount of comment output in the command itself?
Or maybe some editors, pagers that open in the same window? Something else? How to connect?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SilentFl, 2015-08-17
@SilentFl

git outputs the comment in full. "Crops" it less, the default viewer. You can view the comment completely in different ways:
1) turn on line wrapping in less, or
either
(or even write GIT_PAGER in the profile)
2) look through another viewer / editor, for example vim
3) output the entire comment to some file
and many more ways. choose which one you like

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question