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

相关推荐
知识领航员10 小时前
蘑兔AI音乐深度实测:功能拆解、实测表现与适用场景
java·c语言·c++·人工智能·python·算法·github
morestrive13 小时前
基于 fabric.js 实现浏览器端矢量 PDF 导出
前端·github
右耳朵猫AI16 小时前
GitHub Trending 本周 Top 10
github
AlexMaybeBot17 小时前
巧用 OpenClaw 为 Android 开发电脑瘦身
android·github·ai编程
阿福聊编程20 小时前
GitHub Trending · 分类汇总(2026-05-11
github
逛逛GitHub20 小时前
盘点 10 个刚刚开源,但 Star 攀升很快的 GitHub 项目。
github
习惯就好zz20 小时前
在 Qt Creator 19.0.0 中配置 GitHub Copilot 的完整记录
qt·github·copilot
研究点啥好呢20 小时前
Muses | 搭建属于你自己的AI生图网站
前端·人工智能·ai·github
没脾气的打火叽_21 小时前
Codex 明明支持 Subagent,为什么却不会主动用?我做了个 Skill 来解决这个问题
github
微光shimmer21 小时前
doc-chain skill:一站式控制 AI 变更边界的文档依赖网络
github·ai编程