Skip to content

A very simple interactive cli tool to handle your local git branches

License

Notifications You must be signed in to change notification settings

gonzaloserrano/git-br

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-br

A very simple interactive cli tool to handle your local git branches. Currently in alpha stage.

output

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 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.

About

A very simple interactive cli tool to handle your local git branches

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published