Last commit in each git branch

Software Git, Zsh

At work we’re usually working on many git branches at the same time, and from time to time we rebase the “work-in-progress” branches on top of master. In the end it makes it quite complicated to know when a remote branch was last modified, by whom, and whether it has been merged or not. So we have to run git branch -a and then git log on each remote branch… Too tedious for me, let’s automate this 😉

Save this file somewhere in your $PATH (~/bin for me), and run git branch-last-commit with the same options as git branch.

It’s not much, but I like it 😊

Screenshot

Comments

Join the conversation by sending an email. Your comment will be added here and to the public inbox after moderation.