Skip to content

Instantly share code, notes, and snippets.

@rnovec
Last active November 2, 2020 02:17
Show Gist options
  • Select an option

  • Save rnovec/94cfa3a965d18ff8d5869b3ecfc23b2e to your computer and use it in GitHub Desktop.

Select an option

Save rnovec/94cfa3a965d18ff8d5869b3ecfc23b2e to your computer and use it in GitHub Desktop.

Git Tags

  • Create a tag

    git tag -a v2.1 -m "Edit and delete contacts"
    
  • list tags with description

      git tag -n
    
  • Edit tag description

    git tag <tag name> <tag name>^{} -f -m "<new message>"
    

Rename tag and update local & remotes

git tag new_tag_name old_tag_name
git tag -d old_tag_name
git push origin --tags
git push origin :refs/tags/old_tag_name

git push --delete origin old_tag_name # opcional
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment