Tiny Rust CLI to checkout a recent git branch interactively.
brew tap dnjstrom/git-select-branch
brew install git-select-branch
cargo install git-select-branch
git clone git@github.com:dnjstrom/git-select-branch.git
cd git-select-branch
cargo install --path .
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.
- Bump the version in
Cargo.toml
and commit. - Publish to crates.io by running
cargo publish
. - Add a tag with the same version as above and push it to automatically create a release.
- When the release action has finished, update the version, urls and shasums in the hombrew tap.