Skip to content

Instantly share code, notes, and snippets.

@tennisonchan
Created October 3, 2016 13:17
Show Gist options
  • Save tennisonchan/784f5c709561eb15c7b75e814a581423 to your computer and use it in GitHub Desktop.
Save tennisonchan/784f5c709561eb15c7b75e814a581423 to your computer and use it in GitHub Desktop.
Delete merged branches from local on #git
#/bin/bash
git branch --merged | grep -v '\*\|master\|develop' | xargs -n 1 git branch -d
git remote prune origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment