Problem: error: pathspec ‘develop’ did not match any file(s) known to git.
$ git clone blah..blah..blah
$ git branch
* master
From master branch you switch to develop
$ git checkout develop
error: pathspec ‘develop’ did not match any file(s) known to git.

Solution:
To fix it you need to fetch first
$ git fetch origin
$ git rebase origin/master
Current branch master is up to date.
$ git checkout develop
Branch develop set up to track remote branch develop from origin.
Switched to a new branch ‘develop’

Advertisements