Skip to content

Instantly share code, notes, and snippets.

@AlexandrKolesnikov
Created March 2, 2018 15:36
Show Gist options
  • Select an option

  • Save AlexandrKolesnikov/86c23d7d205176b737a4d32ea4599b96 to your computer and use it in GitHub Desktop.

Select an option

Save AlexandrKolesnikov/86c23d7d205176b737a4d32ea4599b96 to your computer and use it in GitHub Desktop.
Git Command line templates
# This command will parse all your local branched that had been merged instead of master or dev. Then for each branch will be called git branch -d(delete locally)
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment