git 无法切换到主分支
怪我咯
怪我咯 2017-05-02 09:31:08
0
1
716

我在用该指令创建一个分支之后。git branch new_featuregit checkout new_feature
再用git checkout master指令他就无法切换到主分支。
报错:error: pathspec 'master' did not match any file(s) known to git.
请问这是怎么回事?求指导。谢谢!

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
Ty80

This error should be that there is no master this branch, you can pass

git branch

See what branches are currently available
or git checkout -b master switch back to the main branch.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!