probranchinator

This is a CLI tool that compares all branches in repository and displays how they can be merged to each other.

Gif

Installation

Download a binary from latest release and put it somewhere in your $PATH.

Tool requires git CLI to be installed and available in $PATH.

Install with script

You can also use install.sh script with bash shell. It will download the latest release and put it in /usr/local/bin directory.

bash curl -s https://raw.githubusercontent.com/strowk/probranchinator/main/install.sh | bash

Only limited amount of platforms have prebuilt binaries at the moment: Linux (x8664 gnu), macOS(x8664, aarch64) and Windows (x86_64 gnu).

Install with cargo

In case if your platform/architecture is not supported, you might need to build the tool from source. You will need to have Rust toolchain installed.

Then you can install the tool with cargo:

bash cargo install probranchinator

Usage

bash probranchinator --remote=<remote_url>

Example:

bash probranchinator --remote=https://github.com/strowk/probranchinator

If you want to examine your local repository, you can use file:// protocol:

bash probranchinator --remote=file://$PWD

To exit the program, press q.

How it works

  1. Clones remote repository into temporary local repository (if necessary)
  2. Fetches all branches from remote
  3. Compares all branches with each other
  4. Outputs result in terminal