Ever annoyed by the long list of local Git branches that are no longer relevant


Ever annoyed by the long list of local Git branches that are no longer relevant? Solution:

git remote prune origin

That removes all local branches that have been deleted from remote (typically GitHub)

Add --dry-run to merely see a list first to confirm.

#git

View original on X