git-checkout with fuzzy branch names
Haskell
Switch branches/tags
Nothing to show
Latest commit ec299a9 Feb 9, 2017 @Wilfred Wilfred Merge pull request #2 from Wilfred/print_usage
Print usage

README.md

Build Status

Bored of writing

$ git checkout feature/really-long-branch-name

? git-fuzzy saves precious keystrokes. Just type enough of the branch name to uniquely identify it:

$ git co real

Installation

$ cabal install --user

This will install an executable git-fuzzy to ~/.cabal/bin. Copy this to somewhere on your $PATH.

You then want to set up a git alias for this command. I like git co. Add to your ~/.gitconfig:

[alias]
    co = !git-fuzzy

Now, rather than writing:

$ git checkout develop

You can just write:

$ git co dev