Use of an exclamation mark in a Git commit message via the command line
No need to remember what quotes or escapes to use, instead
- Type your command (or part of it)
- In your command line, press
Ctr
X
E
» will open your "external editor". - Edit your command, and close your editor.
… the command will be executed &any special characters will show up correctly in the Git commit message!
(NB many other uses: typing complex commands, adding line breaks in your commit message etc.)