sort-branch A small script that prints your git branches in a useful way stack overflow has a variety of opinions on how you can achieve this. I like this implementation the best Installation npm i -g sort-branch Use sort-branch Output