Last active
August 4, 2021 05:43
-
-
Save k8scat/3a100b3be65a6bb6ca3f0d07d0ee100b to your computer and use it in GitHub Desktop.
git-fetch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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