Skip to content

Instantly share code, notes, and snippets.

@aarnone
Created April 1, 2019 13:26
Show Gist options
  • Select an option

  • Save aarnone/98ec201113384a9709fe32a5a09b17b4 to your computer and use it in GitHub Desktop.

Select an option

Save aarnone/98ec201113384a9709fe32a5a09b17b4 to your computer and use it in GitHub Desktop.
Useful snippets for the shell
alias git-drop-orphan-branches='git fetch -p && 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