Last active
March 26, 2025 01:49
-
-
Save cauesmelo/3d3a19d1baf16c145f891162d229f7bf to your computer and use it in GitHub Desktop.
Git interactive checkout
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
| git config --global alias.ck '!f() { \ | |
| branch=$(git branch -a | grep -v HEAD | sed "s/.* //" | fzf); \ | |
| git checkout "$branch"; \ | |
| }; f' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment