Skip to content

Instantly share code, notes, and snippets.

@wuaschtikus
Created May 2, 2019 06:40
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 wuaschtikus/4c39786239f879d5fb206001a57095f5 to your computer and use it in GitHub Desktop.
Save wuaschtikus/4c39786239f879d5fb206001a57095f5 to your computer and use it in GitHub Desktop.
alias gcmld='git checkout master && git pull && comm -12 <(git branch | sed "s/ *//g") <(git remote prune origin --dry-run | sed "s/^.*origin\///g") | xargs -I{} git branch -D {}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment