Re:How to Write a Git Commit Message (2014)
by jwilk on Thursday March 16, 2017 @08:39PM
(#13890410)
You want printf, not echo.
echo is a very non-portable command. POSIX says: "if any of the operands contain a <backslash> character, the results are implementation‐defined."
>Git can take the commit message from a file using the -F or --file flags:
>git commit -F message.txt
So something like
would get around your block.