'How can I get the git log entry without indenting?

In git I commit

git commit -m 'this
quote> is
quote> my
quote> msg
quote> '

git log shows

commit 3d640cbff57a6da500e40bba9dc20fd145975119 (HEAD -> main)
Author: me <[email protected]>
Date:   Fri Nov 5 12:00:22 2021 -0700

    this
    is
    my
    msg

but what I want is

commit 3d640cbff57a6da500e40bba9dc20fd145975119 (HEAD -> main)
Author: me <[email protected]>
Date:   Fri Nov 5 12:00:22 2021 -0700

this
is
my
msg

or to put it another way, I want the log message in a way suitable for copying and pasting into a new log message whereas by default the message is indented so then I have to un-indent it manually before being able to actually use it.

git


Solution 1:[1]

The shortest command line I found is:

git log --pretty=e

which is a shorthand for:

git log --pretty=email

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Johannes Overmann