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 ba
Use single quotes instead of double quotes
git commit -am 'Nailed it!'
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 via set +H
!
set +H