Skip to content

Instantly share code, notes, and snippets.

@carcinocron
Last active April 2, 2021 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save carcinocron/e53d2ffba3e9ac28bb7241bb7ce5ad06 to your computer and use it in GitHub Desktop.
Save carcinocron/e53d2ffba3e9ac28bb7241bb7ce5ad06 to your computer and use it in GitHub Desktop.
git see recently updated branches
git for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
alias branches="git for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment