Lists all git branches with their last commit date, author, and days since last update. Colour-coded staleness: green for recent, yellow for >30 days stale, red for >90 days stale. Supports filtering by staleness threshold and includes remote branches. Essential for repo hygiene — quickly identify branches that can be cleaned up.
GitProductivityUtilityCLI
Features
- Colour-coded staleness: green recent, yellow >30d, red >90d
- Remote branch support with --all flag
- Staleness threshold filter with --stale N
- Author name display per branch
- Uses git for-each-ref for reliable branch listing
Flags
| Long | Short | Description |
|---|---|---|
| --version | -V | Show version and license |
| --all | -a | Include remote branches |
| --stale | -s | Only show branches older than N days |
Usage
terminal
$ git-age
$
$ git-age --stale 60 --all
Dependencies
stdlib only — os/exec, strings, time, fmt
Install
$ curl -LO https://labs.stech-sol.com/downloads/git-age/0.1.0/git-age_linux_amd64
$ chmod +x git-age_linux_amd64
$ sudo mv git-age_linux_amd64 /usr/local/bin/git-age
About
Downloads
Verify integrity
SHA256 checksums