tj.git-extras/bin/git-delete-merged-branches
Tom Vincent a909c8d20f Simplify delete-merged-branches
This will delete branches merged into the current branch.

This uses `-d` and is therefore safer than the current script (which uses `-D`).
IMO, this mitigates the need to prompt.
2013-10-24 12:06:24 +01:00

4 lines
73 B
Bash
Executable file

#!/bin/sh
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d