github出错处理

来源:互联网 发布:程序员屏幕设置 编辑:程序博客网 时间:2024/06/05 05:57

push的时候会出错 比如:

error: src refspec master does not match any.
error: failed to push some refs to 

或者是

Everything up-to-date


解决办法

先 git commit -m 'initial commit' 

然后 git push test master


或者是

先 git pull test master

然后 git commit -m 'initial commit' 

最后 git push test master