Skip to content

Instantly share code, notes, and snippets.

@orlovmax
Created March 19, 2015 17:55
Show Gist options
  • Select an option

  • Save orlovmax/f68333e5d3335f7f5b0a to your computer and use it in GitHub Desktop.

Select an option

Save orlovmax/f68333e5d3335f7f5b0a to your computer and use it in GitHub Desktop.
Git tags renaming and replacing
# Rename old to new
git tag new old
git tag -d old
git push origin :refs/tags/old
git push --tags
# Apply tag to some HEAD
git tag -a v1.0.0 9a31150 -m "v1.0.0"
git push --tags origin master
where 9a31150 is HEAD of old commit that we want to tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment