Skip to content

Instantly share code, notes, and snippets.

@domanchi
Created September 14, 2017 15:40
Show Gist options
  • Save domanchi/be11f7da6ae84a05c8643031ceaa699e to your computer and use it in GitHub Desktop.
Save domanchi/be11f7da6ae84a05c8643031ceaa699e to your computer and use it in GitHub Desktop.
[git cheatsheet] handy commands for git #git

Deleting git tags

# Delete tag on remote, before you push
git push origin :refs/tags/<tagname>

# Replace the tag to reference the most recent commit
git tag -fa <tagname>

# Push the tag to remote
git push origin master --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment