2 ms·
>mark branches which are only local and have no remote, so you can easily purge old branches after they're merged. git fetch --prune EDIT: Then you can see
by jmiserez 7y ago
>mark branches which are only local and have no remote, so you can easily purge old branches after they're merged.
git fetch --prune
EDIT: Then you can see which ones don't exist on the remote
git branch -v
which will show [gone] if it's a tracked branch but the corresponding upstream branch isn't there anymore. Use -vv to show the upstream branch names as well.
See:
- https://git-scm.com/docs/git-fetch#_pruning https://git-scm.com/docs/git-fetch#_pruning
- https://git-scm.com/docs/git-fetch https://git-scm.com/docs/git-fetch