The following error occurred while creating the remote branch:
$ git checkout-b dev origin/dev
fatal:cannot update paths and switch to branch ' Dev ' at the same time.
Did you intend to checkout ' origin/dev ' which can isn't be resolved as commit?
Internet search a lot of information can not solve, finally to the StackOverflow found the answer: link
Translation: (Do not spray)
As I mentioned in "Get new upstream branch with Git," you can try the following command:
# Let's create a new local branch first
# Let's create a new local branch
git checkout-b iss53
# then reset its starting point# then reset its starting point
git reset--hard origin/iss53
Make sure that the original trace of the branch origin/iss53 to exist after running the GIT Fetch Origin command.
Origin/iss53 means that the origin index of the remote repository has a ISS53 branch.
If there is no ORIGIN/ISS53 branch in the original repository, you can simply create a local branch iss53 and then push it to the remote repository:
This creates a connection between the local branch iss53 and the branch origin/iss53 of the original trace.