Sublime Forum

Cleaning out old local branches

#1

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

#2

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

image

0 Likes