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

相关推荐
fliter9 小时前
从零开始,自己造一个可执行文件压缩器
github
UTF_810 小时前
一次NSMutableAttributedString误用的思考
ios·面试·github
zhang_adrian15 小时前
【使用Github Copilot自动按规范文档生成全部代码】
人工智能·github·copilot
代钦塔拉17 小时前
Git & GitHub 从入门到精通:全流程实战教程
git·github
阿里嘎多学长17 小时前
2026-05-30 GitHub 热点项目精选
开发语言·程序员·github·代码托管
lauo1 天前
从FunloomAI到ibbot:当你的手机不再是“手机”,而是你的AI副脑和生产节点
人工智能·智能手机·架构·开源·github
Hommy881 天前
【剪映小助手】贴纸处理接口
网络·开源·github·aigc·剪映小助手·视频剪辑自动化
AIMath~1 天前
向github中上传文件过大超过50M怎么办
网络·git·github
麷飞花1 天前
Github开源协议
github·开源协议
用户887665426631 天前
Git 和 GitHub 入门:从版本控制到团队协作,一篇文章讲清楚
面试·github