I can not change the branch in git

2

I have a repository in git with two branches, master and develop, I initialize and clone my repository but when trying to change to develop I am in favor of this:

error: pathspec 'develop' did not match any file (s) known to git.

    
asked by Yhoshua Ochoa 26.02.2018 в 05:46
source

1 answer

1

Try first to synchronize your local repository with the remote one and then change the branch

git fetch
git checkout develop
    
answered by 26.02.2018 в 08:43