Extra git command for showing information about old branches. Useful for easy cleanup of old branches.
Just put this file in any location referenced in $PATH. For example,
~/bin/
. Make sure it has +x permission if you copy-paste the command there.
Fun fact: any executable file in your $PATH named git-anything
will add
anything
as a custom command available to git. Way more powerful than
just a git alias.
Run git oldbranches
in any repo and it will print a list of all the
local branches, along with information about the last commit, sorted by
date of last commit.