1

Is there a way to show the whole commit message in one line?

Here is my commit message:

git log -1

here this is a change
it is a empty change

Output:

here this is a change it is a empty change

1 Answers1

0

I tried the following:

git show -s --format='%B' <Commit ID> | tr -d '\n'; echo

Reference: Print git commits body lines joined in one line