Skip to content

Instantly share code, notes, and snippets.

@tofuninjah
Last active March 27, 2019 18:58
Show Gist options
  • Save tofuninjah/92489c332d88b242e2df6c0055bc1fef to your computer and use it in GitHub Desktop.
Save tofuninjah/92489c332d88b242e2df6c0055bc1fef to your computer and use it in GitHub Desktop.
Git Remote Prune
$ git remote prune origin --dry-run
$ git remote prune origin [to execute]
### To show branches on remote (should now be pruned of outdated branches)
$ git branch -r
origin/CI/develop-CI
origin/HEAD -> origin/master
origin/develop
origin/features/ESIID
origin/features/develop-CI-plans
origin/features/plans
origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment