Skip to content

Instantly share code, notes, and snippets.

@tyhenry
Created August 2, 2022 13:47
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 tyhenry/aa1f71f4dcf0f3e42ce5b707367a9023 to your computer and use it in GitHub Desktop.
Save tyhenry/aa1f71f4dcf0f3e42ce5b707367a9023 to your computer and use it in GitHub Desktop.
git refs command - list all refs (local / remote branches with last commit info)
git config --global alias.refs "for-each-ref refs/ --sort=committerdate --format='%(color:red)%(committerdate:short) %(color:yellow)%(objectname:short) %(align:25,left)%(color:cyan)%(refname:short)%(end) %(color:magenta)%(subject) %(color:green)%(authorname)'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment