Skip to content

Instantly share code, notes, and snippets.

@k8scat
Last active August 4, 2021 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k8scat/3a100b3be65a6bb6ca3f0d07d0ee100b to your computer and use it in GitHub Desktop.
Save k8scat/3a100b3be65a6bb6ca3f0d07d0ee100b to your computer and use it in GitHub Desktop.
git-fetch
# Delete local tags
git tag -l | xargs git tag -d && git fetch origin
# Prune local branches
git fetch origin --prune -q
# Prune local branches/tags
git fetch origin --prune --prune-tags -q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment