GitHub提交项目到仓库fatal: No configured push destination.

原因:没指定提交到哪个远程仓库

解决方法:

在你git add .和commit之后

bash 复制代码
git add .
git commit -m "信息"

git push前输入以命令

bash 复制代码
git branch -M main
git remote add origin git@github.com:xxx(你GitHub的名称)/xxx.git(你仓库的名称)
git push -u origin main

参考:

关于gitee第一次提交出现fatal: No configured push destination. Either specify the URL from the command-line or_either specify the url from the command-line or co-CSDN博客

如何新建Github仓库并将本地文件上传到Github(远程连接)以及Git常用命令总结_github 新建仓库push-CSDN博客

相关推荐
峰向AI7 小时前
24000本书,一个项目全搞定:这个开源宝藏让我重新认识了读书
github
mCell7 小时前
GitHub Actions 玩法大赏:一台远程主机的七种活法
linux·github·agent
hajimi8 小时前
Agent Skill 实战:我把大疆行业无人机上云的坑,固化成了一个技能包
github
笨鸟先飞,勤能补拙10 小时前
AI与深度学习:从原理到应用
人工智能·windows·vscode·深度学习·机器学习·网络安全·github
前端小卡拉11 小时前
DeepSeek 把 Agent Harness 开源了:Everything is a Plugin,一个手搓过 harness 的人怎么看
github
TunerT_TQ11 小时前
Microsoft 微软 Fluent UI 源码静态评测:从工程结构、测试线索到交付治理的完整解读
microsoft·开源·github
逛逛GitHub12 小时前
国产桌面端 Agent 进化了,支持定时任务、接入Obsidian、丰富SKill
github
子林super12 小时前
OpenCode的Harness机制与模块
github
fthux12 小时前
装闭 RenoPit 源码解析(12):从AI分析结果到React避坑报告
人工智能·ai·开源·github·open source·renopit
TunerT_TQ12 小时前
Microsoft 微软 AI-For-Beginners 静态评测:一套 AI 入门课程,为什么不能只按代码仓库来评价?
microsoft·开源·github