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

相关推荐
秋千易3 小时前
Agent 用不了 Skill,卡在 5 个断点
github
徐小夕3 小时前
JitKnow AI知识库:把任何文档,一键变成可访问和可配置的Wiki站点
前端·vue.js·github
Herry项3 小时前
Mac 上的剪映 Pro 的草稿是怎么加密的,以及我如何用 app 自己的代码解开它
github
李永奉4 小时前
Git和GitHub-VS Code 图形化 Git初始化、状态标识、提交、关联远程仓库与首次推送(全程在 VS Code 内完成,每步附对应Git命令)
git·github
钱栈up5 小时前
GitHub 热榜实测|worktrunk 环境部署实录
rust·开源·github
HelloGitHub6 小时前
《HelloGitHub》第 128 期
开源·github
QuZhengRong18 小时前
【Luck‑Report】报表项目运行与部署 - V2 版本
github·agent·报表·可视化·开源项目
robllv11 天前
别让写代码的同一个 Agent 自己做 Review:我做了个本地跨 Agent 交叉审查工具
github
李永奉1 天前
Git和GitHub-用操作命令控制Git 分支的查看、创建、切换、合并与删除管理实操教程
git·github
用户69371750013841 天前
大模型蒸馏到底在蒸什么?一篇文章搞懂知识蒸馏概念
前端·后端·github