Skip to content

Instantly share code, notes, and snippets.

@akramarev
Last active October 31, 2023 18:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akramarev/2f99211a99929fce4f27fc38d3745128 to your computer and use it in GitHub Desktop.
Save akramarev/2f99211a99929fce4f27fc38d3745128 to your computer and use it in GitHub Desktop.
[Git Tip: Deleting Old Local Branches] http://erikaybar.name/git-deleting-old-local-branches/
git remote prune origin
git branch -vv | grep 'origin/.*: gone]' | awk '{print $1}' | xargs git branch -D
@sushiljain-mt
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment