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

Even better, show your local/remote branches in most-recent order and interactively pick the branch to switch to using fzf:

https://github.com/kbd/setup/blob/f3ebd5ef2bc8a010357b574c02...




That's the way to go!

[alias] rb = for-each-ref --sort=-committerdate --format='%(refname:short)' refs/heads/ --count=10

To switch branches, I invoke this from a shell script and type a couple characters from a branch name

git checkout (git rb|fzf)




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

Search: