A simple CLI tool to quickly checkout recently active git branches using an interactive menu.
go build -o git-recentMove the binary to somewhere in your PATH:
mv git-recent /usr/local/bin/Or use go install:
go installgit-recentShows a list of your local branches sorted by most recent commit activity.
git-recent -r
# or
git-recent --remoteShows a list of remote branches. If a local tracking branch already exists, it will checkout that branch. Otherwise, it creates a new tracking branch.
↑/k- Move up↓/j- Move downEnter- Checkout selected branchq/Ctrl+C- Quit without checking out
/- Enter filter mode- Type to filter branches (case-insensitive, real-time)
Enter(in filter mode) - Keep filtered list and exit filter modeEsc(in filter mode) - Cancel filter and restore full listEsc(with filter applied) - Clear filter and show all branchesEsc(no filter) - Quit without checking outBackspace- Remove last character from filter text