执行下面的命令,git push 时候出错:
git push origin master
出现如下错误:
error: src refspec master does not match any.
error: failed to push some refs to 'git@github.com:********'
原因:
本地仓库为空
解决办法:
git add somefile
git commit -m "comment"
执行下面的命令,git push 时候出错:
git push origin master
出现如下错误:
error: src refspec master does not match any.
error: failed to push some refs to 'git@github.com:********'
原因:
本地仓库为空
解决办法:
git add somefile
git commit -m "comment"
转载于:https://www.cnblogs.com/xiaojianliu/p/10148382.html