Skip to content

Commit 0731851

Browse files
author
John Wiegley
committed
Add git-already-merged
1 parent 9d93e51 commit 0731851

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

git-already-merged

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
# From https://railsware.com/blog/git-housekeeping-tutorial-clean-up-outdated-branches-in-local-and-remote-repositories/
4+
5+
for branch in $(git branch -r --merged | grep -v HEAD)
6+
do
7+
echo -e $(git show --format="%ci %cr %an" $branch | head -n 1) \\t$branch
8+
done | sort -r

0 commit comments

Comments
 (0)