List git branches by date

I’ve Googled way too many times how to list your git branches by date and since the command is too complicated to actually remember or type out I decided to make this a ruby gem that you can execute from the command line.

I tend to create a lot of branches, but I can never remember the exact names and typing git branch doesn’t show dates next to the branch names.

This is the stackoverflow page I kept referring to all the time.

I made this tool over 6 years ago and I still use it on a regular basis. Check it out. It will improve the quality of your life.

$ gem install branches
$ branches
2021-01-28 awesome-feature
2021-01-14 bug-fix
2021-01-02 something-else
2020-01-03 old-branch