Is there a way to wrap git commit comments (when viewed via git log
), so they are not cut off at the end of the line? It seems like there should be a pretty sim
Mentioned in the previous answer is that the default pager (often 'less') is responsible for wrapping and by default it generally chops long lines.
To modify this without changing your commit messages (less and bash example):
$ echo $LESS
-FRSX
This was what I had by default, now to overwrite the LESS environment variable.
echo "LESS=-FRX;export LESS" >> ~/.bash_profile
source ~/.bash_profile