Git - adding a tag with the latest commit date

less than 1 minute read

Adding a git tag with the latest commit date.

1
2
$ GIT_COMMITTER_DATE=$(git log -n1 --pretty=%aD) git tag -a -m "Release 0.0.1" 0.0.1
$ git push --tags

Categories:

Updated: