Created
January 3, 2017 20:12
-
-
Save tillig/cdb8f26eb0f9d716fcedf0b88e7ed408 to your computer and use it in GitHub Desktop.
Retroactively tag a git commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From http://stackoverflow.com/questions/21738647/change-date-of-git-tag-or-github-release-based-on-it | |
git checkout SHA1_OF_PAST_COMMIT | |
GIT_COMMITTER_DATE="$(git show --format=%aD | head -1)" git tag -a v0.9.33 -m"Retroactively tagging version 0.9.33" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment