当用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
继续百度找错。
终于被我找原因在什么地方了!!! https://blog.csdn.net/Ever69/article/details/97565768?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522163394479516780261984194%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=163394479516780261984194&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_ecpm_v1~rank_v31_ecpm-1-97565768.pc_search_result_cache&utm_term=error%3A+failed+to+push+some+refs+to+&spm=1018.2226.3001.4187
|