Local clones accumulate feature branches. Some are long merged; some still diverge from main. git branch lists names, not age or merge status.
gitstale ranks local branches by tip age and shows whether each tip is already an ancestor of the base branch, plus ahead/behind counts.
Install
pip install git+https://github.com/SybilGambleyyu/gitstale.git
Usage
gitstale --merged --days 14 # safe delete candidates
gitstale --unmerged --days 60 # long-lived open work
gitstale -f md
Never deletes anything — report only. Zero dependencies. MIT.
Top comments (0)