Skip to content

Instantly share code, notes, and snippets.

@joshjm
Created February 6, 2023 01:58

Revisions

  1. joshjm created this gist Feb 6, 2023.
    3 changes: 3 additions & 0 deletions git recent command
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    a helpful command to see what your last 10 branch names are that you have checked out

    git config --global alias.recent 'for-each-ref --count=10 --sort=-committerdate refs/heads/ --format="%(refname:short)"'