Skip to content

Instantly share code, notes, and snippets.

@tillig
Created January 3, 2017 20:12
Show Gist options
  • Save tillig/cdb8f26eb0f9d716fcedf0b88e7ed408 to your computer and use it in GitHub Desktop.
Save tillig/cdb8f26eb0f9d716fcedf0b88e7ed408 to your computer and use it in GitHub Desktop.
Retroactively tag a git commit
# 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