Created
July 21, 2011 20:30
-
-
Save foca/1098132 to your computer and use it in GitHub Desktop.
List branches that are still in the upstream repositories
This file contains hidden or 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
$ git config alias.stale | |
!for sha in $(git branch -rv --merged | grep -v origin/HEAD | awk '{print $2}'); do printf "%-40s %s" "$(git name-rev --name-only $sha)" "$(git log -1 --format="%h %an" $sha | cat)"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment