git branch --sort=-committerdate

Category: Git - Core

git branch --sort=-committerdate

List branches by last commit date

Sorts branches by committer date, newest first when the key is negated. The bare --sort=committerdate puts oldest first. It is a quick way to spot stale branches that deserve review or deletion.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.