Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.18 KB

README.md

File metadata and controls

52 lines (33 loc) · 1.18 KB

git-select-branch

Tiny Rust CLI to checkout a recent git branch interactively.

git-select-branch lets you select a recent branch interactively.

Installation

Homebrew

brew tap dnjstrom/git-select-branch
brew install git-select-branch

Cargo

cargo install git-select-branch

Sources

git clone git@github.com:dnjstrom/git-select-branch.git
cd git-select-branch
cargo install --path .

Configuration

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

  1. Bump the version in Cargo.toml and commit.
  2. Publish to crates.io by running cargo publish.
  3. Add a tag with the same version as above and push it to automatically create a release.
  4. When the release action has finished, update the version, urls and shasums in the hombrew tap.