tyre/recent-branches

A TUI to display recent branches, information about them, and switching between

1

stars

10

commits

Go

primary language

Aug 31, 2026

updated

README

recent-branches

recent-branches Demo

A terminal UI for switching between your recent git branches. Built with Bubble Tea.

It lists your most recently active branches in a table, shows the last few commits on whichever branch you highlight, and switches when you hit enter. If you have uncommitted changes, a modal asks whether to commit or stash them first.

Install

Requires Go 1.24+.

make build        # builds to build/recent-branches
# or
go build -o recent-branches

Usage

Run it from inside a git repository:

recent-branches                  # your 10 most recent local branches
recent-branches -n 20            # show more
recent-branches -remote          # include remote branches
recent-branches -author all      # everyone's branches
recent-branches -author a,b      # specific authors

By default it shows only branches you have committed to.

Keys

KeyAction
/ Move through branches (or scroll logs when focused)
enterSwitch to the selected branch
tabToggle focus between table and debug logs
rRefresh the branch list
lClear debug logs
cClear the status message
q / ctrl+cQuit

Development

make dev     # quick build in the current directory
make test    # go test -v ./...
make fmt     # go fmt
make lint    # golangci-lint

Contributors

tyre

10 commits

tyre/recent-branches

A TUI to display recent branches, information about them, and switching between

1

stars

10

commits

Go

primary language

Aug 31, 2026

updated

README

recent-branches

recent-branches Demo

A terminal UI for switching between your recent git branches. Built with Bubble Tea.

It lists your most recently active branches in a table, shows the last few commits on whichever branch you highlight, and switches when you hit enter. If you have uncommitted changes, a modal asks whether to commit or stash them first.

Install

Requires Go 1.24+.

make build        # builds to build/recent-branches
# or
go build -o recent-branches

Usage

Run it from inside a git repository:

recent-branches                  # your 10 most recent local branches
recent-branches -n 20            # show more
recent-branches -remote          # include remote branches
recent-branches -author all      # everyone's branches
recent-branches -author a,b      # specific authors

By default it shows only branches you have committed to.

Keys

KeyAction
/ Move through branches (or scroll logs when focused)
enterSwitch to the selected branch
tabToggle focus between table and debug logs
rRefresh the branch list
lClear debug logs
cClear the status message
q / ctrl+cQuit

Development

make dev     # quick build in the current directory
make test    # go test -v ./...
make fmt     # go fmt
make lint    # golangci-lint

See what people are saying

Contributors

tyre

10 commits

Languages

Go

98.0%

Makefile

2.0%