Welcome to Shaun Luttin's public notebook. It contains rough, practical notes. The guiding idea is that, despite what marketing tells us, there are no experts at anything. Sharing our half-baked ideas helps everyone. We're all just muddling thru. Find out more about our work at bigfont.ca.

Git: View / checkout remote branches

Tags: git

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