If you like B-branch, please star the repo! ⭐
What's new 💯
- Add
pager
and--no-pager
flags to force pager into the Console output. #85 - Pager now works with the
--quite
and-q
flag - Validation for
-a
,--all
,-r
,--remote
,-q
,--quite
,-v
,--version
,--pager
,--no-pager
,-h
, and--help
that do not need an input. - Add flag concatenation for short flags. Example
git bb -qa
. - Last commit now also reflect time in months.
- Speed up performance for fetching git information
Installation 🧭
Scripted install
curl -sSfL https://raw.githubusercontent.com/SimonNyvall/b-branch/main/install.sh | sh
Manual install
Pre-Installation Cleanup 🧹
Before reinstalling B-branch, follow these steps to remove previous configurations.
- Delete the
bin
directory:
- Windows: Delete the
b-branch
folder fromC:\Users\<user>\AppData\Local\bin\
. - Unix: Run the following command to remove the
b-branch
directory from the localbin
:
sudo rm -rf /usr/local/bin/b-branch
- Remove Git Alias:
- Open the git config file (usually located in
~/.gitconfig
for Unix or%USERPROFILE%\.gitconfig
on Windows). - Delete the two lines that correspond to the bb alias for B-branch.
Manual install
- Download the binary for your system from the links provided below. ⬇️
- Unzip the file using the following command:
unzip b-branch-<arch>.zip
- Move the unzipped B-branch directory to the appropriate
bin
directory.
[!NOTE]
The<arch>
refers to the archutecture of the binary file downloaded.
Windows 🪟
[!NOTE]
For Windows installment change the<user>
to your computers username.
- Move the B-branch folder to the
Appdata
folder
move "C:\b-branch-<arch>" "C:\Users\<user>\AppData\Local\bin\b-branch"
- Link B-branch to your local
git
git config --global alias.bb '!f() { /c/Users/<user>/AppData/Local/B-branch/CLI.exe "$@"; }; f'
Unix 🐧 🍎
- Move the B-branch directory to the local
bin
directory
sudo mv b-branch-<arch> /usr/local/bin/b-branch
- Link B-branch to your local
git
git config --global alias.bb '!bash -c '\''"'/usr/local/bin/b-branch/CLI'" "$@"'\'' bash'
Documentation Link 📖
For detailed usage instructions, please see the README.