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

相关推荐
铁甲前沿4 小时前
一个月玩转MQTT(篇四:移远EC200U模块MQTT连接测试)
mqtt·github·emqx·mqttx·移远ec200u
琛説9 小时前
⚡PitchPPT:将PPT导出为高清全图PPT,并控制PPT文件大小在固定MB/GB以内【解析算法原理 · 作者谈】
windows·python·算法·github·powerpoint
阿里嘎多学长10 小时前
2026-02-14 GitHub 热点项目精选
开发语言·程序员·github·代码托管
x-cmd10 小时前
GitHub 推出了 Agentic Workflows,并且提供了 Copilot 免费套餐
ai·github·copilot·x-cmd·agentic·workflows
CoderJia程序员甲12 小时前
GitHub 热榜项目 - 日榜(2026-02-14)
人工智能·ai·大模型·github·ai教程
m0_694845571 天前
netcut 是什么?简单安全的在线剪贴板搭建与使用教程
运维·服务器·安全·开源·云计算·github
中科三方1 天前
域名注册后无法解析解决方法:技术故障排查和解决指南
开发语言·github·php
JavaGuide1 天前
又一款国产开源企业级文件管理系统诞生了!基于 Spring Boot 3.5.x + Sa-Token + MyBatis Flex
后端·github
_Johnny_1 天前
GitHub Copilot转变为兼容API
github·copilot