I’m looking for a way to clean out local old branches via the GUI.
Via the cli:
- git remote prune origin
- sanity check: git branch -vv | grep ‘origin/.*: gone]’
- git branch -vv | grep ‘origin/.*: gone]’ | awk ‘{print $1}’ | xargs git branch -d
I’m looking for a way to clean out local old branches via the GUI.
Via the cli:
Had to figure this out too. To prune local branches that no longer exist on remote, the option is fetch --prune
;