Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anikolaienko/3d6d8227871edc211d638743483b60f8 to your computer and use it in GitHub Desktop.
Save anikolaienko/3d6d8227871edc211d638743483b60f8 to your computer and use it in GitHub Desktop.
Git list branches sorted by last update date
git for-each-ref --sort=-committerdate refs/heads --format='%(authordate:short) %(color:red)%(objectname:short) %(color:yellow)%(refname:short)%(color:reset) (%(color:green)%(committerdate:relative)%(color:reset))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment