Hacker News new | ask | show | jobs
by jph 2261 days ago
I alias `git ref-recent` to:

    git for-each-ref 
        --sort=-committerdate 
        --format='%(committerdate:short) %(refname:short) %(objectname:short) %(contents:subject)' 
        refs/heads/
The output shows the date, branch name, commit hash, and commit subject, such as:

    2020-04-06 master d8560f4 Add feature foo
    2020-03-28 fix-button 15f985d Fix button for menu
    2020-03-19 optimize-sort 3dbec4d Optimize sort algorithm
I put my aliases in GitAlias, which has many more: https://github.com/gitalias/gitalias