Skip to content

Tiny Rust CLI to checkout a recent git branch interactively

Notifications You must be signed in to change notification settings

dnjstrom/git-select-branch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]: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.

About

Tiny Rust CLI to checkout a recent git branch interactively

Resources

Stars

Watchers

Forks

Packages

No packages published