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

相关推荐
小弥儿2 小时前
GitHub今日热榜 | 2026-08-16:大模型微调与编码工具扎堆
学习·开源·github
starp7 小时前
skill 管理,后缀为public可以被git commit
github
31535669138 小时前
DeepSeek Harness 发布后,我没急着跑 Demo,先把 `.agents/` 翻了一遍
前端·后端·github
u13013010 小时前
GitHub 热榜项目:周榜(2026-08-16)
github
暮云星影11 小时前
git版本发布
git·gitee·github·gitea
m4Rk_11 小时前
【论文阅读】Agent 记忆机制(41):Agentic Plan Caching——将历史执行轨迹转化为可复用的计划记忆
论文阅读·人工智能·学习·开源·github
本地化文档12 小时前
poethepoet-docs-l10n
python·github·gitcode·sphinx
晴天小庭13 小时前
DeepSeek Harness纯净桌面版(基于Tauri)开源,欢迎品鉴
github
苏灿烤鱼14 小时前
一套进程代替八件套,桌面更稳还是单点更大
linux·github·shell