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

相关推荐
小弥儿11 小时前
开源 VoiceStudio,声音克隆|配音|有声书一站式本地完成
学习·开源·github
问天_观心19 小时前
大模型微调学习(一)
开发语言·人工智能·学习·语言模型·github
峰向AI19 小时前
SRT 白板动画:让字幕「画」出故事
github
阿里嘎多学长19 小时前
2026-09-03 GitHub 热点项目精选
开发语言·程序员·github·代码托管
dong_junshuai20 小时前
每天一个开源项目#87 fmt:24.5K Stars 的 C++ 格式化核心
c++·开源·github
七牛开发者1 天前
拆解 dsh:Session 的事件溯源与状态重建
javascript·github·agent
ashina1 天前
Claude Code 明明配置了 Skill,为什么还是会跳过?我连夜写了一个本地验证器
github
王大虎1 天前
一语成美图的 SKILL
人工智能·github·设计
m4Rk_1 天前
【论文阅读】Agent 记忆机制(59):Synapse——让相关记忆沿情景—语义图被逐步激活
论文阅读·人工智能·学习·开源·github