Skip to content

Instantly share code, notes, and snippets.

@panta82
Created October 30, 2018 07:59
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 panta82/3abeae61b14d197223855a5ba3c7ffdf to your computer and use it in GitHub Desktop.
Save panta82/3abeae61b14d197223855a5ba3c7ffdf to your computer and use it in GitHub Desktop.
Show branches sorted by the latest commit
brs = "!f(){ git fetch --all --prune ; 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))' ; };f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment