Sublime Forum

Cleaning out old local branches


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
1 Like


Had to figure this out too. To prune local branches that no longer exist on remote, the option is fetch --prune;