当用git push origin master推送时出现如下错误
error: src refspec master does not match any
error: failed to push some refs to 'github.com:sampleboy/Remote-warehouse.git'
百度好久依旧无果。
网上的解决办法是:
1.检查git配置
git config user.name/git config --global user.name
git config user.email/git config --gloabl user.email
git remote -v
2.跟因就是远程库与本地库代码不一致导致的,我们只要把远程库同步到本地库即可,使用如下命令:
git pull --rebase origin master
执行后依旧报错
fatal: couldn't find remote ref master
继续百度找错。