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

相关推荐
JavaGuide14 小时前
Claude Code 怎么学?推荐 4 个高质量开源教程,从入门到实战
github·ai编程·claude
我命由我1234516 小时前
Android 开发问题:Could not find com.github.PicnicSupermarket:FingerPaintView:1.2.
android·github·android studio·安卓·android jetpack·android-studio·android runtime
行走__Wz16 小时前
本地项目初次上传到GitHub教程
github
CoderJia程序员甲16 小时前
GitHub 热榜项目 - 周榜(2026-05-31)
ai·大模型·llm·github·ai教程
zandy101118 小时前
Hermes Agent 2026年6月最新安装教程
docker·github·agent
科技道人19 小时前
Launcher allapps界面顶部推荐的app
git·github·launcher·allapps
Soari19 小时前
从零训练 LLM:解析 GitHub 开源项目 train-llm-from-scratch
github·llm训练·从零训练大模型
任我坤21 小时前
Github Copilot 智能编程助手深度评测
人工智能·github·copilot
Soari21 小时前
GitHub 开源项目解析:OpenBMB/VoxCPM —— Tokenizer-Free 多语言语音合成与声音克隆模型
开源·github·语音合成·tts·多语言语音生成
半夜修仙21 小时前
RabbitMQ常见高级特性
其他·中间件·rabbitmq·github·java-rabbitmq