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

相关推荐
wflynn3 小时前
GitHub 日榜趋势速报 | 2026-11-27
开源·github
一条Go4 小时前
全链路 e2e:一次跑出 20 个现象,收敛成 5 个根因
后端·github·测试
一条Go4 小时前
开源新生代雷达 · 第 24 期
github
钱栈up9 小时前
GitHub 热榜上手|anthropics/skills:18.9万星的 Claude 技能库
python·开源·github
李永奉15 小时前
Git和GitHub-VS Code 图形化 Git 放弃更改、暂存与取消暂存、撤销上一次提交(VS Code 界面操作 + 命令行对照)
git·github
TunerT_TQ19 小时前
【开源 L3 静态取证|工程评测】xnulinux:双内核实验——可复现的环境与许可比截图更重要
github
一条Go19 小时前
proto 契约:校验注解、错误码与「文案即接口」
后端·github
一条Go19 小时前
15 套品牌色 + 双模式:把颜色关进三层 token
前端·github
逛逛GitHub1 天前
GitHub 上 1.6 万 Star!这个 GitHub 项目让 AI 帮你复刻视频
github
秋千易1 天前
Agent 用不了 Skill,卡在 5 个断点
github