Show the latest activity on each branch
The following command shows a list of all branch heads (including their last activity dates):
$ git log --simplify-by-decoration --decorate \
--date=relative --date-order \
$(git branch -a | cut -c 3- | grep -v -- '->')
Branches near the bottom haven't been touched recently.
I'd recommend creating an alias for it:
$ git config --global alias.activity '!git log --simplify-by-decoration --decorate --date=relative --date-order $(git branch -a | cut -c 3- | grep -v -- "->")'
Written by Vincent Driessen
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#