I'm trying to checkout a remote branch which doesn't exist locally.
git checkout -b branch_name origin/branch_name
gives:
fatal: Cannot update paths and switch to branch 'branch_name' at the same time.
Did you intend to checkout 'origin/branch_name' which can not be resolved as commit?
git branch -a
doesn't show the branch I'm trying to checkout.
How can I checkout the remote branch locally?