Skip to content

Instantly share code, notes, and snippets.

@SeanRoberts
Created April 20, 2024 15:10
Show Gist options
  • Save SeanRoberts/22510b280718357d9574b05c530e128f to your computer and use it in GitHub Desktop.
Save SeanRoberts/22510b280718357d9574b05c530e128f to your computer and use it in GitHub Desktop.
git checkout via fzf
alias co="git for-each-ref --sort=-committerdate refs/heads/ refs/remotes/ --format='%(refname:short)' | sed 's|^remotes/||' | fzf | xargs git checkout"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment