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

相关推荐
u1301306 小时前
GitHub 热榜项目:月榜(2026-10-31)
github
wflynn8 小时前
GitHub 日榜趋势速报 | 2026-10-30
开源·github
miofly9 小时前
Anthropic为Claude四款模型加水印,两款旧模型留调参漏洞
开源·github
m4Rk_9 小时前
【论文阅读】Agent 记忆机制(116):Hybrid Memory——用互补策展与离线巩固构建长期记忆
论文阅读·人工智能·学习·开源·github
u13013011 小时前
GitHub 热榜项目:日榜(2026-10-31)
github
-梅11 小时前
GitHub Actions 自动化:5 个真实运维提效案例
运维·自动化·github
miofly12 小时前
GitHub 周榜趋势速报 | 2026-11-01
开源·github
miofly12 小时前
GitHub 日榜趋势速报 | 2026-11-01
开源·github
Sakura_j_h_21 小时前
EasyEDA PCB 快速设计Skills
c++·python·github
wflynn1 天前
GitHub 今日推荐|Edge0:让大号 MoE 模型在一台 Mac 上流式跑起来
python·开源·github