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

相关推荐
CoderJia程序员甲8 小时前
GitHub 热榜项目 - 周榜(2026-09-26)
ai·大模型·llm·github
miofly12 小时前
GitHub 周榜趋势速报 | 2026-10-02
开源·github
阿里嘎多学长13 小时前
2026-09-29 GitHub 热点项目精选
开发语言·程序员·github·代码托管
老李IT笔记15 小时前
激活锁状态怎么检测:三个入口,四种返回值,一份排查顺序
git·智能手机·github
m4Rk_16 小时前
【论文阅读】Agent 记忆机制(87):VizoMem——把文本历史转化为可检索的视觉记忆
论文阅读·人工智能·学习·开源·github
lpfasd12316 小时前
GitHub非AI开源方向调研报告
人工智能·开源·github
hasty17 小时前
签名是真的,分支却不对:GitHub CLI 制品证明的大小写边界
github
u13013020 小时前
GitHub 热榜项目:日榜(2026-10-01)
人工智能·github
漂着的圆木20 小时前
Agent执行安全:Taskflow无容器架构风险边界核对
github·安全架构·ai agent·部署边界
miofly20 小时前
GitHub 今日推荐|archify:AI 代理自动生成可交互架构图的技能模块
开源·github