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

相关推荐
miofly24 分钟前
GitHub 日榜趋势速报 | 2026-10-23
开源·github
wangruofeng7 小时前
AI Models 模型目录,跨平台比较大模型 API 价格与上下文
github·aigc·ai编程
怕浪猫9 小时前
红利窗口开着,程序员别在场边囤课
面试·github·ai编程
来自于狂人9 小时前
GitHub 开源趋势日报 | 2026年10月21日
开源·github
u13013013 小时前
GitHub 热榜项目:日榜(2026-10-21)
人工智能·github
逛逛GitHub16 小时前
盘点本周 11 个 Star 攀升最多的 GitHub 开源项目。
github
蒲公英内测分发16 小时前
智能门锁量产时,工厂测试 App 一直在更新,产线怎么避免装错 APK?
服务器·人工智能·github·智能硬件·智能手表
本地化文档17 小时前
llvm-libc-docs-l10n
c语言·github·gitcode·sphinx·llvm·crowdin
wflynn17 小时前
GitHub 日榜趋势速报 | 2026-10-21
开源·github
钱栈up18 小时前
GitHub热榜上手|Claude插件:4.3万星官方目录
python·开源·github