Posted By

satie83 on 03/30/12


branches git

Versions (?)

GIT - List of git branches

 / Published in: Bash


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).

  1. git for-each-ref --sort=-committerdate refs/heads/

Report this snippet  

You need to login to post a comment.