Hacker News new | past | comments | ask | show | jobs | submit login

I use it multiple times every day to switch to already existing git branches, checkout remote branches with creation of tracking branch, or to checkout remote branches in detached HEAD mode. I made git aliases for those, and this is how it looks like in my .gitconfig:

  [alias]
    cof = !git for-each-ref --format='%(refname:short)' refs/heads | sort | uniq | fzf | xargs git checkout
    cor = !git branch --list --remotes | sed 's@origin/@@' | sort | uniq | fzf | xargs git checkout
    cord = !git branch --list --remotes | sort | uniq | fzf | xargs git checkout



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: