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

问题描述:

在远程服务器上新建裸仓库git  --bare init ;

git clone裸仓库到本地;

本地新建并切换分支xccdev,git checkout -b xccdev;

从xccdev分支切换到master分支,提示error: pathspec 'master' did not match any file(s) known to git.

原因定位:

master分支进行过git commit操作后才可以

猜你喜欢

转载自www.cnblogs.com/apple2016/p/9110094.html