#git-branch #branch #git-repository #git-tool #managment #multibranch

bin+lib gfb

Tiny CLI for enforcing branching name strategy across multiple git repositories

4 stable releases

1.1.3 Jul 12, 2023
1.1.2 May 24, 2023
1.0.0 May 23, 2023

#1768 in Command line utilities

Custom license

22KB
284 lines

Git Favorite Branch

Quickly manage git branches during intensive multi-tasking work environments

Usage

You can always run gfb <SUBCOMMAND> -h to get the latest usage.

Tiny CLI for enforcing branching name strategy across multiple repositories

Usage: gfb <COMMAND>

Commands:
  add      Add current branch to favorites
  use      Switch to a different branch
  del      Remove favorite branch
  del-all  Delete all favorite branches
  branch   Print Branch Name
  new      Create a new branch that is named with a value for a given key
  ls       List all favorite branches
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Install

Using Cargo

cargo install gfb

Using Homebrew (MacOS Only)

brew tap revent-studio/tap
brew install gfb

Build

Currently we don't have a build available for multiple OS, so you will need to clone the repo and build it your self. No worries here is the guide to get it working on your machine.

Requirements

  • Rust (latest)

Installation Instructions

  1. Clone this repo
git clone git@github.com:byte-partisan/git-favorite-branch.git
  1. Build
cargo build
  1. With the help of cargo make your executable visible to your environment
cargo install --path .
  1. Run the executable
gfb --help

Dependencies

~1.6–2.5MB
~49K SLoC