mirror of
https://github.com/tj/git-extras.git
synced 2026-09-12 08:26:17 -04:00
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.
4 lines
73 B
Bash
Executable file
4 lines
73 B
Bash
Executable file
#!/bin/sh
|
|
|
|
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
|