Error downloading branch in git

1

I was working on a branch on my personal machine, and when I downloaded it to the company machine, using the windows power shell, I received the following message:

PS projeto> git checkout -t origin/minha_branch
fatal: Cannot update paths and switch to branch 'minha_branch' at the same time.
Did you intend to checkout 'origin/minha_branch' which can not be resolved as commit?
    
asked by anonymous 08.06.2017 / 16:02

1 answer

1

When you have clone a project and are switching branches, you can only use git checkout <branch> without needing -t , because git will automatically fetch references and manage tracking.

If this continues to happen, see if your remotes are correct with git remote -v and try using git fetch <seuRemote> and git remote update <seuremote> to update references, then use the same command again.

link

link

    
08.06.2017 / 16:41