-
-
Save xdbr/d68e7bf683be9db73b7b to your computer and use it in GitHub Desktop.
find stale, leftover branches in git (add to ~/.gitconfig)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stale = "! abandoned_branches() { \ | |
for branch in `git branch -r --no-merged | grep -v HEAD`; do \ | |
echo `git show --format='%ci %cr %ae' $branch | head -n 1` $branch; \ | |
done | sort -r | column -t; \ | |
}; abandoned_branches" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment