Skip to content

benwyrosdick/git-recent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-recent

A simple CLI tool to quickly checkout recently active git branches using an interactive menu.

Installation

go build -o git-recent

Move the binary to somewhere in your PATH:

mv git-recent /usr/local/bin/

Or use go install:

go install

Usage

Checkout local branches

git-recent

Shows a list of your local branches sorted by most recent commit activity.

Checkout remote branches

git-recent -r
# or
git-recent --remote

Shows a list of remote branches. If a local tracking branch already exists, it will checkout that branch. Otherwise, it creates a new tracking branch.

Controls

Navigation

  • /k - Move up
  • /j - Move down
  • Enter - Checkout selected branch
  • q/Ctrl+C - Quit without checking out

Filtering

  • / - Enter filter mode
  • Type to filter branches (case-insensitive, real-time)
  • Enter (in filter mode) - Keep filtered list and exit filter mode
  • Esc (in filter mode) - Cancel filter and restore full list
  • Esc (with filter applied) - Clear filter and show all branches
  • Esc (no filter) - Quit without checking out
  • Backspace - Remove last character from filter text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages