Skip to content

Instantly share code, notes, and snippets.

@ianstormtaylor
Created August 28, 2019 13:21
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianstormtaylor/5fd717cea9d91e19412933e3ae59db13 to your computer and use it in GitHub Desktop.
Save ianstormtaylor/5fd717cea9d91e19412933e3ae59db13 to your computer and use it in GitHub Desktop.
Aliases for nicer branching output from Git.
alias gb="git branch --sort=-committerdate --verbose --format='%(HEAD) %(color:red)%(objectname:short)%(color:reset) - %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) - %(color:green)(%(committerdate:relative))%(color:reset) %(color:blue)<%(authorname)>%(color:reset)'"
alias gba="gb -a"
@ianstormtaylor
Copy link
Author

Before:

image

After:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment