Here's a simple example to demonstrate my problem. If I do:
git commit -m "`date --utc`"
It executes date --utc
, and puts the result inside the commit message.
However, when I alias it to testcomit:
git config --global alias.testcommit 'commit -m "`date --utc`"'
Doing git testcommit
does not execute the `date --utc`
part, it instead puts it verbatim in the commit message.
So, how do I get this alias to execute date --utc
?