Skip to content

B-branch 1.1.0

Latest
Compare
Choose a tag to compare
@SimonNyvall SimonNyvall released this 08 Dec 11:23
· 17 commits to main since this release
21745f8

If you like B-branch, please star the repo!

b-branch banner

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.

  1. Delete the bin directory:
  • Windows: Delete the b-branch folder from C:\Users\<user>\AppData\Local\bin\.
  • Unix: Run the following command to remove the b-branch directory from the local bin:
sudo rm -rf /usr/local/bin/b-branch
  1. 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

  1. Download the binary for your system from the links provided below. ⬇️
  2. Unzip the file using the following command:
unzip b-branch-<arch>.zip
  1. 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.