git checkout -b local-name origin/remote-name
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'origin/remote-name' which can not be resolved as commit?
sloving way:
git remote update
git checkout -b local-name origin/remote-name
fatal: git checkout: updating paths is incompatible with switching branches.
Did you intend to checkout 'origin/remote-name' which can not be resolved as commit?
sloving way:
git remote show origin
If the remote branch you want to checkout is under "New remote branches" and not "Tracked remote branches" then you need to fetch them first:git remote update
git fetch
Now it should work:git checkout -b local-name origin/remote-name