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

相关推荐
Soari14 小时前
GitHub 开源项目解析:rk‑llama.cpp —— 基于 llama.cpp 的 Rockchip NPU 加速本地推理引擎
开源·github·llama·llm 推理·npu 本地模型推理·加速 c/c++ 开源项目
Hommy8814 小时前
【开源剪映小助手】核心功能特性
开源·github·视频剪辑自动化·剪映api
小仙女喂得猪14 小时前
AI 写 Android 代码老翻车?我把移动端的 Harness 系统开源了
android·github·ai编程
AdCj314 小时前
上下文成本四把刀: 本期 GitHub Trending Daily 精选技术分析版(2026-06-04)
github
鱼羽生生14 小时前
基于NetCorePal Cloud Framework的DDD架构管理系统实践
github
自进化Agent智能体15 小时前
Hermes Skill设计模式:把AI能力变成可复用的工程资产
github
AdCj316 小时前
上下文成本四把刀本期 GitHub Trending Daily 精选 (2026-06-04)
github
pipo18 小时前
从 LIO 到 Nav2:我把 FAST-LIO改造成了机器人能用的底盘里程计
github
Jul1en_19 小时前
【AI】Claude Code 迁移至 Codex 的工作流更新-v2
人工智能·ai·github·ai编程
本地化文档19 小时前
psycopg3-docs-l10n
数据库·python·postgresql·github·gitcode·sphinx