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
Another way to solve that is to add a space after ! like:
git commit -am "Nailed it! "
Note the space between ! and the last ".
(The space won't be included in the commit message - Git trims trailing whitespace from commit messages automatically.)