https://github.com/gonzaloserrano/git-br
A very simple interactive cli tool to handle your local git branches
https://github.com/gonzaloserrano/git-br
branch cli git golang
Last synced: 5 months ago
JSON representation
A very simple interactive cli tool to handle your local git branches
- Host: GitHub
- URL: https://github.com/gonzaloserrano/git-br
- Owner: gonzaloserrano
- License: apache-2.0
- Created: 2017-05-21T19:51:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-21T16:47:46.000Z (over 8 years ago)
- Last Synced: 2025-10-11T07:48:01.556Z (9 months ago)
- Topics: branch, cli, git, golang
- Language: Go
- Homepage:
- Size: 11.5 MB
- Stars: 9
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-br
A very simple interactive cli tool to handle your local git branches. Currently in alpha stage.

I wrote it because normally I work with tons of local branches and I needed a better way to handle them than `git branch`.
I know [tig](https://github.com/jonas/tig) has a branches (refs) view, but I wanted to try something to show the changes easier.
## install
Download, compile and install with `go get -u github.com/gonzaloserrano/git-br/cmd/git-br`.
If you don't have `$GOPATH/bin` in your `$PATH`, you can for e.g `$ cp $GOPATH/bin/git-br /usr/local/bin`.
## use
Type `git br` in your repo or provide a path as a first argument.
## todo
- [ ] use colored labels for distinguish diff added, modified, deleted
- [ ] if no path is passed, and we are not in the .git dir, look it up in the parent tree
- [ ] display repo path
- [ ] highlight master/develop branches
- [ ] use enter to switch and quite, shift-enter to just switch
- [ ] add delete feature
- [ ] improve performance when moving between lines, add delay + cancelation
- [ ] show origin branches like tig
- [ ] add delete all branches that are already merged feature
- [ ] add live mode: use a goroutine to refresh branches
- [ ] remove columnize dep
## license
This program is released under the Apache 2.0 license, see LICENSE file.