Created
January 6, 2022 18:20
-
-
Save thepacketgeek/73097d691cb58269cda88011c873a8c9 to your computer and use it in GitHub Desktop.
Git checkout branch w/ fzf
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
gch() { | |
git checkout $(git for-each-ref refs/heads/ --format='%(refname:short)' | fzf) | |
} | |
gchr() { | |
git checkout --track $(git branch --remotes | fzf) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment