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 小时前
Nacos 源码深度畅游:注册中心核心流程详解
分布式·后端·github
lkbhua莱克瓦2412 小时前
Java基础——方法
java·开发语言·笔记·github·学习方法
fanjinhong_852118 小时前
屏幕捕捉工具 (Screen Capture Tool)
python·github
方圆想当图灵19 小时前
Nacos 源码深度畅游:Nacos 配置同步详解(下)
分布式·后端·github
方圆想当图灵19 小时前
Nacos 源码深度畅游:Nacos 配置同步详解(上)
分布式·后端·github
lkbhua莱克瓦2420 小时前
Java练习——数组练习
java·开发语言·笔记·github·学习方法
这儿有一堆花21 小时前
部署Cloudflare免费图床——免费开源强大
开源·github
ddacrp21 小时前
RHEL_配置dns主从服务
github
500佰1 天前
Copilot、Codeium 软件开发领域的代表性工具背后的技术
人工智能·github·gpt-3·copilot·个人开发·xcode
想用offer打牌1 天前
seata的JacksonUndoLogParser回滚SerialArray类型的序列化和反序列化解析
后端·开源·github