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

相关推荐
m0_694845575 小时前
Oh My Zsh 使用指南:Zsh 终端配置与插件管理教程
服务器·前端·小程序·开源·github
米小虾6 小时前
hackerbot-claw 攻击事件深度解析:AI Agent 时代的安全警钟
github·ai编程
逛逛GitHub8 小时前
AI 搜索利器 MiroThinker 发布新模型!我接入小龙虾,太实用了。
github
happyprince8 小时前
2026年03月18日热门Model/github项目
github
无限进步_9 小时前
深入解析list:一个完整的C++双向链表实现
开发语言·c++·git·链表·github·list·visual studio
AI成长日志9 小时前
【datawhale】hello agents开源课程第1章学习记录:初识智能体
学习·开源·github
爆打维c10 小时前
Github配置SSH Key(新手友好版)
ssh·github
老虎062711 小时前
Netty[ NIO 核心速成 ] ---- NIO三大组件(Channel & Buffer&selector)
java·github·nio
屑曦晨12 小时前
创建签名密钥库和配置CICD签名
github
成都极云科技12 小时前
2026年服务器托管收费标准解析 性价比对比及边缘节点选型全指南
运维·服务器·github