Installing the command-line executable
Assuming you have Rust/Cargo installed , run this command in a terminal:
cargo install git-branch
It will make the git-branch command available in your PATH if you've allowed the PATH to be modified when installing Rust . cargo uninstall git-branch uninstalls.
Back to the crate overview .
Readme
Git branch
Use git-branch to manage local git branches interactively 🔥
Displays the origin branch
Displays the HEAD branch
Displays all local branches with the commit hash and time elapsed since the last modification
Delete branches simultaneously
Who is it intended for?
For all developers who use git as their version control system
Installation
Pre-requisite
Install rustup to compile the source code for our device/os
Usage
📦 Install with cargo
cargo install git-branch
🥈 Run git-branch
🚀 Optional but incredible: Add an alias oh my zsh
touch $ ZSH_CUSTOM /aliases.zsh
echo " alias ggb=git-branch" >> $ ZSH_CUSTOM /aliases.zs
source ~ /.zshrc
🥇 Run ggb
Special thanks:
The original idea came from the 🧙♂️ Valentin Barit
The original repo can be accessed here https://github.com/quibaritaenperdresatrompe/git-branch