Skip to content

Instantly share code, notes, and snippets.

@FDelporte
Last active July 19, 2022 08:29
Show Gist options
  • Save FDelporte/0a2326699f2ae0162cc11d8a05231ef6 to your computer and use it in GitHub Desktop.
Save FDelporte/0a2326699f2ae0162cc11d8a05231ef6 to your computer and use it in GitHub Desktop.
GIT remove local branches not on remote
git branch --merged origin/master | grep -v master | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment