Git: View / checkout remote branches
View remote branches
show all branches
git branch -a
remote only
git branch -r
Checkout a remote branch
# checkout the remote, but stay in detached HEAD git checkout remotes// # then create a new branch to retain commits git checkout -b