Skip to content

Instantly share code, notes, and snippets.

@chris-burkhardt
Created July 21, 2021 07:32
Show Gist options
  • Save chris-burkhardt/3e425f777f7292da687da492d1c96f4d to your computer and use it in GitHub Desktop.
Save chris-burkhardt/3e425f777f7292da687da492d1c96f4d to your computer and use it in GitHub Desktop.
sourcetree-github-tags-fix
No matter git hooks or other scripts, all of them need to run on the local machines individually.
So I will suggest to sync tags with remote before the developers create their own tags on local machines.
Actually it just need to execute once for each local machine,
so the developers just need to run below commands (delete local tags and get all tags from remote)
on their machine before working:
git tag -l | xargs git tag -d
git fetch --tags
Then the developers can work on their own local repo and even git push with push all tags option selected in SourceTree
won’t effect the old tags you deleted.
Ref: https://stackoverflow.com/questions/45681091/how-do-i-stop-users-from-pushing-all-tags-git-push-tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment