I have forked(origin) a repo from another repo (Upstream).
What I want to do is,
- Creating a local branch called UnitTest from Upstream/develop_clean branch.
- Push it to a remote branch called UnitTest
What I have done is
git checkout -b UnitTest upstream/develop_clean
git push -u origin UnitTest
But it throws a fatal error like
fatal: Cannot update paths and switch to branch 'UnitTest' at the same time. Did you intend to checkout 'upstream/develop_clean' which can not be resolved as commit?
I can not figure it out. Whats the problem here? Is there any other ways to do the same thing as describe above?