Skip to content

Instantly share code, notes, and snippets.

@padupuy
Created February 19, 2020 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save padupuy/0d6fd1e83f267fc9dd31f31460d6b31b to your computer and use it in GitHub Desktop.
Save padupuy/0d6fd1e83f267fc9dd31f31460d6b31b to your computer and use it in GitHub Desktop.
remove old git branch
git fetch -p
git branch -vv
git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment