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

相关推荐
掘根21 小时前
【jsonRpc项目】发布/订阅模块
github
森之鸟1 天前
2026年AI编程工具全景图:GitHub Copilot vs Cursor vs Codeium,我如何选择?
github·copilot·ai编程
wAIxiSeu1 天前
Github开源项目推荐
开源·github
无限进步_1 天前
面试题 02.02. 返回倒数第 k 个节点 - 题解与详细分析
c语言·开发语言·数据结构·git·链表·github·visual studio
CoderJia程序员甲1 天前
GitHub 热榜项目 - 日榜(2026-01-31)
ai·开源·大模型·github·ai教程
飞乐鸟1 天前
Github 16.8k Star!推荐一款开源的高性能分布式对象存储系统!
分布式·开源·github
CCC:CarCrazeCurator1 天前
IDE 与编程语言区分介绍
git·github
Go_Zezhou1 天前
render快速部署网站和常见问题解决
运维·服务器·开发语言·python·github·状态模式
玉梅小洋2 天前
Git 使用技巧——查看 Commit 修改文件的概要
git·github
矢志航天的阿洪2 天前
从GitHub到本地:Python IGRF库环境配置完全指南
开发语言·python·github