Skip to content

Instantly share code, notes, and snippets.

@drizzd
Last active April 13, 2019 13:45
Show Gist options
  • Save drizzd/344cb2e90804c53724ac436b35268453 to your computer and use it in GitHub Desktop.
Save drizzd/344cb2e90804c53724ac436b35268453 to your computer and use it in GitHub Desktop.
git recent

git recent

git config --global alias.recent "branch --sort=committerdate --format '%(HEAD) %(if)%(HEAD)%(then)%(color:green)%(end)%(align:67)%(refname:short)%(end)%(color:reset)%(committerdate:short)'"

Example output:

$ git recent
  master                                                             2016-06-27
  traverse-index2                                                    2017-10-23
  fix-gitk-ttk-style                                                 2018-03-03
  completion-optimize-ls-files-filter                                2018-03-11
  completion-optimize-ls-files-filter2                               2018-03-17
  completion-optimize-ls-files-filter3                               2018-03-18
  completion-optimize-ls-files-filter3-mingw                         2018-03-19
  completion-optimize-ls-files-filter4                               2018-04-04
  path-filter                                                        2018-04-30
  1653-rename                                                        2018-05-12
  1653-chmod                                                         2018-06-11
  setbuf                                                             2018-10-01
* (HEAD detached at 0a121c30e4)                                      2019-03-08
  dont-clean-junctions                                               2019-03-09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment