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

相关推荐
miofly4 小时前
Nous Research微调Qwen3.8-27B,宣称可剥离中国官方立场内容
开源·github
用户2991422196809 小时前
GitHub 热榜项目:周榜(2026-11-08)
人工智能·开源·github
用户29914221968010 小时前
GitHub 热榜项目:日榜(2026-11-08)
人工智能·开源·github
miofly12 小时前
GitHub 周榜趋势速报 | 2026-11-08
开源·github
miofly12 小时前
GitHub 日榜趋势速报 | 2026-11-08
开源·github
miofly1 天前
百度开源ERNIE 5.5 Flash Base,总参数280B仅激活14B
开源·github
dong_junshuai1 天前
每天一个开源项目#154 Nushell:结构化管道怎样跨过文本边界
github
Jason_gao9991 天前
Github Copilot 新手极速上手指南
人工智能·github·copilot
GitHub实测笔记1 天前
hexyl 本机实测:8MiB 转储中位 102ms、od 696ms(约 6.8×);默认双面板,NO_COLOR 下要 --color=force
github
MoRay1 天前
放弃云端 Computer Use,我用 Python 手搓了一个带“物理防呆”的本地 GUI Agent 底座
python·github