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

相关推荐
维基框架15 小时前
GitHub源码处理提速 一趟扫描反而更慢
人工智能·github
徐小夕16 小时前
开源!我用SQLite + DuckDB打造了一款可视化AI问数平台
前端·算法·github
码流怪侠19 小时前
SuperAGI 技术深度解析:开发者优先的开源自主 AI Agent 框架
github·agent
dong_junshuai20 小时前
每天一个开源项目#19 多源数据自动报告生成框架
github
vance0420 小时前
免费Cloudflare隧道隐藏公网IP
linux·tcp/ip·github
dong_junshuai1 天前
每天一个开源项目#56 reverse-skill:11K Stars 的安全 Agent 路由器
github
逛逛GitHub1 天前
3 个最近在 GitHub 上非常火的项目,最后一个有创意。
github
AC赳赳老秦1 天前
开源组件版本数据监控:OpenClaw 抓取公开版本信息,自动提醒更新与安全风险
前端·python·安全·开源·github·php·openclaw
TunerT_TQ1 天前
Valhalla 静态工程审阅 #012|Hertz 源码证据驱动评测【大厂开源基础设施特辑】
测试工具·微服务·开源·github·字节跳动·cloudwego·http框架
一次旅行1 天前
fzf+ripgrep+fd终端三合一实战:一套检索工具链,大幅提升大型项目开发效率
人工智能·python·github