Git Tips Slides
PageUp x2: previous · PageDown x2: next · Home: index

Autocompletion

If you configured auto-completion, you can easily get a list of branches if you know the first characters of the branch name:

git switch branch[TAB]
 --->        branch-foo
 --->        branch-bar
 --->        ...

git-switch-branches.sh

This is a small interactive branch switcher based on fzf. It shows local and remote branches in one list, previews recent commits, and if you select a remote-only branch it creates the local tracking branch for you.