Created
January 8, 2019 03:23
-
-
Save christianscott/eed058ef31bf6b50be706a3ed896013b to your computer and use it in GitHub Desktop.
Fuzzy-find a branch and checkout to it
This file contains hidden or 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
function fzf-checkout | |
git checkout (git branch | rg '^\s*[^*]' | fzf | sed 's/^ *//;s/ *$//') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment