Created
April 9, 2019 09:04
-
-
Save hkupty/f363ec9f0bd25216c0cb2b570a76a463 to your computer and use it in GitHub Desktop.
Fuzzy-find branches to git checkout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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