git - 错误:src refspec "depositoryname" 不匹配。错误:未能将一些参考推送到“https://g”
问题描述
我只是想将我的 git 存储库上传到 GitHub,它向我显示了这条消息。
error: src refspec depositoryname does not match any.
error: failed to push some refs to 'https://github.com/<me>/project.git'
我实际上是在做一步一步的教程,一切都应该是正确的,但事实并非如此。
有人可以帮忙吗?
解决方案
如此处所示,错误可能来自未git add .
在 a 之前使用,git commit
这会导致分支为空。
尝试并推送(默认为“主”)分支将导致该错误消息。
5假设这里' depositoryname
'是一个分支的名称)
推荐阅读
- jquery - angularjs 在旧版本的浏览器中不起作用
- machine-learning - 使用 Microsoft ML.net 0.2(机器学习)进行图像识别/分类
- python - 通过烧瓶 API 在列表中搜索字典
- python - TensorFlow 对象检测 API 被杀死 - OOM。如何减少洗牌缓冲区的大小?
- android - 如何通过不同类型的活动
- json - 是否以 JSON 格式存储 SVG 图像?
- android - Pixel 2 和 Pixel 2 XL 设备指标
- ajax - Medium 使用 javascript 或 php 获取最新文章
- android - MobileAds.initialize 导致 ClassNotFoundException
- sql - 从数据库 SQL 中提取数字