Skip to content

Branch Inspector for git. Lists all branches by date, along with additional meta information such as last commiter and if they're merged into the current branch or not.

Notifications You must be signed in to change notification settings

ejdanderson/git-bri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

git-bri or Git Branch Inspector is a tool to give you a better understanding of all your branches. It will sort all your branches by date, show you who the last person to commit to said branch was and whether or not its beeen merged into the current branch.

Installation

  1. Ensure that git-bri is executable: sudo chmod 755 git-bri
  2. Add the file to your path, a simple way to do this is by opening the git-bri directory and running: sudo ln -s "$PWD"/git-bri /usr/local/bin/git-bri
  3. Checkout the branch you'd like to compare other branches with (merged vs not merged) and run git-bri, this may take a few seconds for large repos with many branches.

You can also setup a git alias to run git bri instead of git-bri:

bri = "!f() { git-bri $@ }; f "

Usage

  1. Switch to the branch you'd like to check
  2. Run the script: git-bri
  3. Cleanup branches

The script accepts two flags -a and -l. By default, the branch inspector will look through remote branches to see if they've been mereged. -l will only check local branches and -a will check both local and remote branches.

About

Branch Inspector for git. Lists all branches by date, along with additional meta information such as last commiter and if they're merged into the current branch or not.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages