I'm attempting to make a git alias to show all commits since the last tag. I'm basing it of this SO answer that I've used a lot in the past.
Currently, I'm trying this with a git config --global alias.*
command like so:
git config --global alias.summary 'log `git describe --tags --abbrev=0`..HEAD --oneline'
This registers a new 'command' named 'summary' that would render out all the commit messages since the last tag.
However, when I run git summary
, git throws out this error message:
fatal: ambiguous argument '`git': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
To me, this looks like the inner command git describe --tags --abbrev=0
that are nested inside the backticks do not evaluate correctly.
How can I fix this?