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

相关推荐
极客小云7 小时前
【2026年01月更新可用!Github镜像站列表国内可用更快部署下载(持续更新)】
github
九狼JIULANG10 小时前
基于Flutter+Riverpod+MVI 实现的跨平台「AI 提示词优化工具」
android·开源·github
人工智能先锋11 小时前
从零部署你的24小时AI管家:OpenClaw完整实战指南(附踩坑记录)
前端·github
Web极客码11 小时前
WordPress核心、插件和主题更新顺序
github
大尚来也12 小时前
CI/CD 流水线搭建实战:GitHub Actions vs GitLab CI 2026 深度对比与选型指南
ci/cd·gitlab·github
ProgramHan1 天前
github、gitlab、gitee分别都是什么,为什么不能访问?
gitee·gitlab·github
Maynor在掘金1 天前
Grok 4.2 重磅来袭!xAI 最新 AI 模型功能全解析(2026 年 2 月版)
github
那時年少1 天前
从需求到技术选型:我是怎么做自然语言数据分析的
github
CoderJia程序员甲1 天前
GitHub 热榜项目 - 日榜(2026-02-17)
ai·大模型·github·ai教程
Kusunoki_D1 天前
在GitHub Pages仓库上设置个人网页
github