Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrozenCow/10016111 to your computer and use it in GitHub Desktop.
Save FrozenCow/10016111 to your computer and use it in GitHub Desktop.
git for-each-ref --format='%(committerdate:iso8601) %(committerdate:relative) %(refname)' --sort -committerdate
# Example output (resulting from running command on the Rails repo — https://github.com/rails/rails)
$ git for-each-ref --format='%(committerdate:iso8601) %(committerdate:relative) %(refname)' --sort -committerdate | head -10
2014-04-07 08:23:58 +0200 78 minutes ago refs/heads/master
2014-04-07 08:23:58 +0200 78 minutes ago refs/remotes/origin/HEAD
2014-04-07 08:23:58 +0200 78 minutes ago refs/remotes/origin/master
2014-04-04 19:46:48 -0300 2 days ago refs/remotes/origin/4-0-stable
2014-04-04 19:44:42 -0300 2 days ago refs/remotes/origin/4-1-stable
2014-04-04 18:14:54 -0300 2 days ago refs/remotes/origin/4-1-0
2014-03-28 10:51:52 -0700 10 days ago refs/remotes/origin/test_equality_operators_return_values
2014-03-25 10:18:42 -0700 13 days ago refs/remotes/origin/adequaterecord
2014-03-14 14:35:22 -0300 3 weeks ago refs/tags/v4.0.4
2014-03-11 14:28:49 -0300 4 weeks ago refs/tags/v4.0.4.rc1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment