Skip to content

Instantly share code, notes, and snippets.

@cauesmelo
Last active March 26, 2025 01:49
Show Gist options
  • Select an option

  • Save cauesmelo/3d3a19d1baf16c145f891162d229f7bf to your computer and use it in GitHub Desktop.

Select an option

Save cauesmelo/3d3a19d1baf16c145f891162d229f7bf to your computer and use it in GitHub Desktop.
Git interactive checkout
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