Git: checkout a remote branch

Sometimes, I push a branch from a local repository to a remote and want to checkout that branch in another location later on.

I knew how to use git fetch to fetch all branches in that remote but couldn’t find out how to checkout the branch. Turns out, it’s really easy!

git co -b branch origin/branch