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博客

相关推荐
qiuyuyiyang21 分钟前
Nginx 反向代理之upstream模块以及完整配置反向代理示例
git·nginx·github
CoderJia程序员甲43 分钟前
GitHub 热榜项目 - 日榜(2026-03-14)
人工智能·ai·大模型·github·ai教程
猫头虎43 分钟前
如何解决openclaw安装skills报错command not foud:clawhub问题怎么解决?
langchain·开源·prompt·github·aigc·ai编程·内容运营
汪海游龙1 小时前
03.15 AI 精选:Claude Opus/Sonnet 4.6 开放 100 万上下文
github·hacker news
阿里嘎多学长1 小时前
2026-03-14 GitHub 热点项目精选
开发语言·程序员·github·代码托管
汪海游龙12 小时前
03.14 AI 精选:面向 AI 与自动化的轻量级无头浏览器
github
常利兵14 小时前
JWT从入门到精通:一文解锁生成、验证与防篡改秘籍
github
chaors17 小时前
从零学RAG0x05实战应用:企业智能知识库
人工智能·github·ai编程
lauo20 小时前
dtnsbot分身网页版正式上线:开启“灵魂与肉身分离”的智能体远程控制新纪元
人工智能·智能手机·架构·开源·github