My problem is related to:
http://stackoverflow.com/questions/180064/fatal-git-error-when-switching-branch
I try to fetch a remote branch with the command
git checkout -b local-name origin/remote-name
but I get this error message:
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?
If I mannually create a branch, and then pull the remote branch, it does work, just as makeing a new clone and checking the branch out.
But I want to know why it does not work on the repository I work with.