我只是想将我的 git 存储库上传到 GitHub,它向我显示了这条消息。
error: src refspec depositoryname does not match any.
error: failed to push some refs to 'https://github.com/<me>/project.git'
其实我是在做一步一步的教程,应该都是对的,但不是。
有人可以帮忙吗?
答案 0 :(得分:0)
作为 seen here,错误可能来自 not 在 git add .
之前使用 git commit
,然后导致空分支。
尝试并推送(默认为“main”)分支将导致该错误消息。
5假设这里的“depositoryname
”是一个分支的名称)