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

相关推荐
峰向AI9 小时前
Kage: 一个 244KB 文件,做出百万级视觉效果
github
m4Rk_12 小时前
【论文阅读】Agent 记忆机制(74):CompassMem——从相似度检索走向事件图上的记忆导航
论文阅读·人工智能·学习·开源·github
wflynn13 小时前
GitHub 日榜趋势速报 | 2026-09-18
开源·github
粥里有勺糖15 小时前
视野修炼第133期 | Native 回春了?
前端·github·agent
Mr.朱鹏19 小时前
Git 仓库同时推送到 Gitee 与 GitHub 配置指南
git·gitee·开源·github
All for pursuit.21 小时前
FastAPI+Ollama 部署本地AI大模型对话助手
python·github·aigc·ollama
u1301301 天前
GitHub 热榜项目:日榜(2026-09-18)
人工智能·github
troy1281 天前
Python 基础语法(九):Django/Flask/FastAPI 三大 Web 框架详细对比解析
python·jupyter·django·flask·github·fastapi
dong_junshuai2 天前
每天一个开源项目#103 BrowserSkill:4.7K星,Agent接管真实浏览器
开源·github·agent
dong_junshuai2 天前
每天一个开源项目#102 六阶段代码复核流程范式
开源·github·agent