git常见问题解决方法 光头络腮胡 2022-09-18 161 阅读1分钟 error: src refspec main does not match any error: failed to push some refs to 'github.com:xxx/xxx.git' 现状:建立本地空仓库和远程仓库的联系。 原因:本地文件夹为空。 解决方法:新建一个README.md,然后git add + git commit + git push -u origin main。