git-select-branch

Crates.iogit-select-branch
lib.rsgit-select-branch
version0.2.3
sourcesrc
created_at2021-05-09 16:00:11.913673
updated_at2023-11-15 11:04:53.096537
descriptionTiny CLI utility to checkout a recent git branch interactively
homepagehttps://github.com/dnjstrom/git-select-branch
repositoryhttps://github.com/dnjstrom/git-select-branch
max_upload_size
id395276
size1,224,565
Joar Wandborg (joar)

documentation

https://docs.rs/crate/git-select-branch

README

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. Run ./scripts/prepare-release-files.sh.
  4. Make a new release including:
    • The version from Cargo.toml
    • The file at ./target/release/git-select-branch-mac.tar.gz.
  5. 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
Commit count: 42

cargo fmt