Skip to content

Instantly share code, notes, and snippets.

@migrs
Created December 12, 2012 07:20
Show Gist options
  • Save migrs/4265766 to your computer and use it in GitHub Desktop.
Save migrs/4265766 to your computer and use it in GitHub Desktop.
マージ済みローカルブランチ・リモートブランチの削除
git branch --merged | grep feature | xargs git branch -d
git branch -r --merged | grep feature | sed 's#origin/#:#' | xargs git push origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment