git-select-branch
Tiny Rust CLI to checkout a recent git branch interactively.
Installation
Homebrew
brew tap dnjstrom/git-select-branch
brew install git-select-branch
Cargo
cargo install git-select-branch
Sources
git clone [email protected]:dnjstrom/git-select-branch.git
cd git-select-branch
cargo install --path .
Git alias
Add the following section to your ~/.gitconfig
:
[alias]
select-branch = "!git-select-branch"
Now you can simply type git select-branch
to switch between branches.
Publishing
- Bump the version in
Cargo.toml
and commit. - Publish to crates.io by running
cargo publish
. - Run
./scripts/prepare-release-files.sh
. - Make a new release including:
- The version from
Cargo.toml
- The file at
./target/release/git-select-branch-mac.tar.gz
.
- The version from
- Edit the hombrew tap with the new information:
- The version from
Cargo.toml
- The link from the release page
- The sha from
./target/release/git-select-branch-mac.tar.gz.shasum
- The version from