Skip to content

Instantly share code, notes, and snippets.

@davidwalter0
Forked from okunishinishi/Remove all git tags
Last active March 9, 2016 19:27
Show Gist options
  • Save davidwalter0/d8d73eaa740a16c0d9d3 to your computer and use it in GitHub Desktop.
Save davidwalter0/d8d73eaa740a16c0d9d3 to your computer and use it in GitHub Desktop.
manage git remote tags
# Initially one user one time clean up of tags for the repo
# Delete local tags.
git tag -l | xargs git tag -d
# Fetch remote tags.
git fetch
# Delete remote tags.
git tag -l | xargs -n 1 git push --delete origin
# Delete local tags.
git tag -l | xargs git tag -d
# Synchronize tags for each user
# All users remove all tags locally
# Delete local tags.
git tag -l | xargs git tag -d
# Development workflow might be:
git checkout -b dev-branch
# development flow
# repeat:
# edit, test
# commit . . .
git commit . . .
#
git fetch
git checkout master
git rebase origin master
git checkout dev-branch
git rebase master
# tag and push name x-v0.0.0
# add tag
git tag x-v0.0.0
# push tag
git push x-v0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment