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

相关推荐
semantist@语校3 小时前
语校网500所里程碑:日本语言学校数据库的标准化与可追溯机制
大数据·数据库·人工智能·百度·语言模型·oracle·github
CoderJia程序员甲15 小时前
GitHub 热榜项目 - 日榜(2025-10-01)
ai·开源·github·ai编程·github热榜
紫钺-高山仰止18 小时前
【Pyzmq】python 跨进程线程通信 跨平台跨服务器通信
服务器·python·github
芥子沫1 天前
GitHub 使用技巧
github·使用技巧·代码管理
圆肖1 天前
[陇剑杯 2021]简单日志分析(问3)
前端·经验分享·github
Akshsjsjenjd1 天前
Nginx 访问控制、用户认证、HTTPS配置实操手册
nginx·https·github
uhakadotcom1 天前
入门教程:常用的 Python 第三方库:python-logstash
后端·面试·github
绝无仅有1 天前
资深面试之MySQL 问题及解答(一)
后端·面试·github
绝无仅有1 天前
面试MySQL 高级问题及解答(三)
后端·面试·github
Lin_Aries_04212 天前
部署 GitLab 服务器
linux·运维·服务器·docker·gitlab·github