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

相关推荐
阿里嘎多学长1 小时前
2026-10-23 GitHub 热点项目精选
开发语言·程序员·github·代码托管
Brookty2 小时前
Git 与 GitHub|第一阶段:仓库、版本历史与 Git 对象模型(上篇)
git·github
miofly2 小时前
GitHub 日榜趋势速报 | 2026-10-24
开源·github
怕浪猫10 小时前
外包和大厂的前端代码,差在凌晨三点
前端·面试·github
徐小夕11 小时前
花了3个月,我们做了一款 AI 版的“飞书文档”
前端·算法·github
穆梓兰煊15 小时前
pgvector 0.8 评测:过滤向量检索的召回修复与边界
github
诚小纯16 小时前
qwen-deep-research 接入实录:两阶段调用、SSE 解析、报告结构与 35 处不可追溯的引用
人工智能·github
用户99484388107016 小时前
开源了一个把老 PHP 站点自动升级到 PHP 8.5 的工具(应对 PHP2Shell 漏洞)
github
用户72737441388416 小时前
用 sha256 校验 Windows 下载文件:从 EZA Modern LS 说起
github
miofly17 小时前
Gemini 4 Argon发布,机器人ERQA推理得分87%但缺可比基准
开源·github