Return to Snippet

Revision: 56488
at March 30, 2012 20:09 by satie83


Initial Code
git for-each-ref --sort=-committerdate refs/heads/

Initial URL
http://stackoverflow.com/questions/5188320/how-can-i-get-a-list-of-git-branches-ordered-by-most-recent-commit

Initial Description
I want to get a list of all the branches in a Git repository with the "freshest" branches at the top, where the "freshest" branch is the one that's been committed to most recently (and is, therefore, more likely to be one I want to pay attention to).

Initial Title
GIT - List of git branches

Initial Tags
git

Initial Language
Bash