How cool would it be to show all your current branches with their last update time?


> git wip



Here is an alias to do so.

Edit your ~/.gitconfig file, or create one if you don't have it, and add the following lines (if you already have a [alias] section, just add the alias):


[alias]
wip= for-each-ref --sort='authordate:iso8601' --format=' %(color:green)%(authordate:relative)%09%(color:white)%(refname:short)' refs/heads


Tada! All you have to do now is typing 'git wip' in your terminal. It’s really useful for remembering on which branch you were just working on.


Thanks to Carolyn Van Slyck for this post.