原因: 空的本地版本库,无法push到remote仓库,
git commit --allow-empty -m" empty commit "
或者 随意本地提交一次
然后,git push origin master
error: src refspec master does not match any. error: failed to push some refs to xxx
空仓库Push
最新推荐文章于 2025-10-15 11:52:15 发布
解决空的本地版本库无法push到远程仓库的问题。通过执行git commit --allow-empty或随意本地提交,再使用git push origin master完成推送。
16万+

被折叠的 条评论
为什么被折叠?



