Skip to content

Instantly share code, notes, and snippets.

@hkupty
Created April 9, 2019 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hkupty/f363ec9f0bd25216c0cb2b570a76a463 to your computer and use it in GitHub Desktop.
Save hkupty/f363ec9f0bd25216c0cb2b570a76a463 to your computer and use it in GitHub Desktop.
Fuzzy-find branches to git checkout
#!/bin/env bash
# Requires https://github.com/junegunn/fzf
git checkout "$(git branch | awk '{print $NF}' | fzf)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment