How to sort git branches by date git I found that neat little trick on stackoverflow. You can just sort: git branch --sort=-committerdate