"Cannot update paths and switch to branch at the same time"
If you have a typo in your branchname you'll get this same error.
'
origin/master
' which can not be resolved as commit
Strange: you need to check your remotes:
git remote -v
And make sure origin
is fetched:
git fetch origin
Then:
git branch -avv
(to see if you do have fetched an origin/master
branch)
Finally, use git switch
instead of the confusing git checkout
, with Git 2.23+ (August 2019).
git switch -c test --track origin/master