Skip to content
Switch git branch interactively.
Branch: master
Clone or download
Latest commit d050d6b Feb 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci ci: make the job name clearer Jan 30, 2019
vendor
.editorconfig first commit Jan 30, 2019
.gitignore feat: add github release installation Feb 16, 2019
LICENSE first commit Jan 30, 2019
Makefile feat: add github release installation Feb 16, 2019
README.md
branch.go refactor: normalize the exported functions Jan 30, 2019
branch_test.go first commit Jan 30, 2019
command.go
go.mod remove selected text Feb 23, 2019
go.sum
main.go remove selected text Feb 23, 2019
util.go first commit Jan 30, 2019
util_test.go

README.md

git-checkout-branch

CircleCI Go Report Card

The git-checkout-branch tool is a command-line tool for improving the efficiency of switching git branches. It is an extended git command.

Features

  • Switch git branch interactively
  • Search git branch dynamically

Overview

Instructions:

  • Use the arrow keys to navigate:
  • You can also move up and down using j and k
  • Use / to toggle search
  • Press ctrl + c to quit

Installation

You can install the git-checkout-branch binary from GitHub Releases.

curl -sSL https://github.com/royeo/git-checkout-branch/releases/download/v0.3.0/git-checkout-branch-`uname -s`-`uname -m` -o /usr/local/bin/git-checkout-branch && chmod +x /usr/local/bin/git-checkout-branch

You can also use go get to install the git-checkout-branch binary:

go get -u github.com/royeo/git-checkout-branch

make sure the $GOPATH/bin folder is in your PATH.

It is recommended to set up an alias for checkout-branch, such as cb.

git config --global alias.cb checkout-branch

Usage

Use git checkout-branch help for help information.

Checkout git branches more efficiently.

Usage:
  git checkout-branch [flags]

Flags:
  -a, --all          List both remote-tracking branches and local branches
  -r, --remotes      List the remote-tracking branches
  -n, --number       Set the number of branches displayed in the list (default 10)
      --hide-help    Hide the help information

License

MIT Copyright (c) 2019 Royeo

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.