Skip to content

Instantly share code, notes, and snippets.

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 weirdpattern/f39924ff57eddaff03483aaa2956da79 to your computer and use it in GitHub Desktop.
Save weirdpattern/f39924ff57eddaff03483aaa2956da79 to your computer and use it in GitHub Desktop.
.2018.06.21.prune-deleted-remote-branches
2018.06.21.prune-deleted-remote-branches
# prunes the remote repository origin
git fetch --prune
# same as above
git fetch -p
# prunes the remote repository upstream
git fetch upstream --prune
# same as above
git fetch upstream -p
git fetch [remote] [-p | --prune]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment