问题复现:
今天在使用gitee创建仓库后上传写好的代码时报错
在远程关联仓库后无法正常推送
键入下图代码时报错error: src refspec master does not match any xxx
解决方法:
1、git remode add origin [你的代码提交地址]
2、git status
检查代码状态,如果标红则git add .
进行提交
3、git commit -m 'xxx'
xxx是你的代码提交备注
4、git push origin master
提交成功后会返回done
解决git时出现error: src refspec master does not match any问题
最新推荐文章于 2024-07-22 10:26:03 发布
本文介绍了在使用Gitee创建仓库并尝试推送代码时遇到的'srcrefspecmasterdoesnotmatchany'错误的解决步骤。通过执行git remote add origin、git status、git add .、git commit以及git push origin master等命令,可以成功解决这个问题,确保代码正常提交。
摘要由CSDN通过智能技术生成