error: pathspec 'test-branch' did not match any file(s) known to git

后端 未结 11 1824
刺人心
刺人心 2020-12-13 17:31

I am a new user of Git. I have forked a repository called Spoon-Knife (available for practicing forking with Git). Then, I cloned it locally by running

git c         


        
11条回答
  •  孤街浪徒
    2020-12-13 17:57

    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’

提交回复
热议问题