git-branch-select

Git plugin for interactive branch listing, selection & checkout

Usage no npm install needed!

<script type="module">
  import gitBranchSelect from 'https://cdn.skypack.dev/git-branch-select';
</script>

README

git-branch-select

npm npm license npm downloads

Interactive (local) branch selection in your repositories.

Install via npm

$ npm install --global git-branch-select

Usage

$ git branch-select [options] [search]
# Alias it in your .gitconfig for added convenience,
# for example: bs = branch-select
Options:
  --version, -v        Show version
  --help, -h           Show usage help

  --local, -l          List local branches only
  --remote, -r         List remote branches only
  --tags, -t           List tags
~/C/node-bencode (bignum-support) $ git branch-select
? Select a branch: ›
❯ bignum-support
  feature/streams
  housekeeping
  master
~/C/node-bencode (bignum-support) $ git branch-select stre
? Select a branch: › stre
❯ feature/streams
  master