3 ms·
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/f
by kbd 7y ago
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/f3ebd5ef2bc8a010357b574c02ecf5f8f1c2886a/HOME/.config/git/config#L67 https://github.com/kbd/setup/blob/f3ebd5ef2bc8a010357b574c02...
- jamesgeck0 7y agoThat'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)