lbranch ("last branch") is a git utility that shows your recently checked out branches in chronological order, with an optional interactive checkout.
# Show last 5 branches
lbranch
# Show last N branches
lbranch 3
# Show branches and choose one to checkout
lbranch -c
lbranch --choose
# Show last N branches and choose one
lbranch 3 -c
Last 5 branches:
1) feature/new-ui
2) main
3) bugfix/login
4) feature/api
5) develop
- Python 3.6+
- Git
Distributed under the MIT License. See LICENSE