gh branch GitHub CLI extension
gh extension install mislav/gh-branch
This extension depends on fzf as a fuzzy finder. To install using Homebrew:
brew install fzf
Displays an interactive branch switcher that lists local branches in relation to the pull requests in the repository. The selected branch is checked out.