How do I enter an exclamation point into a Git commit message from the command line?
It is possible to escape the exclamation point with a backslash, but then the backslash ends up in the commit message as well.
I want something like this:
git commit -am "Nailed it!"
Use single quotes instead of double quotes
Alternatively, if you need to use double quotes for whatever reason but still want a literal
!then turn off history expansion at the top of your script viaset +H