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

相关推荐
寻道码路12 分钟前
【GitHub开源AI精选】WhisperX:70倍实时语音转录、革命性词级时间戳与多说话人分离技术
人工智能·开源·github
南宫码农2 小时前
苹果cms
github·电视盒子·源代码
CoderJia程序员甲3 小时前
GitHub 热榜项目 - 日榜(2026-02-04)
开源·大模型·llm·github·ai教程
该用户已存在(真)5 小时前
工程项目训练--病毒分析
github·课程设计
小灰灰搞电子6 小时前
github/gitee 操作命令详解
gitee·github
会写代码的饭桶8 小时前
【DevOps实战】使用 GitHub Actions 自动构建镜像并双推至 Docker Hub 和 GHCR
docker·自动化·github·devops
MicrosoftReactor8 小时前
技术速递|GitHub Copilot SDK 与云原生的完美融合
云原生·github·copilot
JiL 奥9 小时前
简易的 AWS SAM + GitHub Actions 项目
云计算·github·aws
潘晓可9 小时前
从自建Github实例迁移仓库到SaaS版Github
github
极客小云10 小时前
【基于AI的自动商品试用系统:不仅仅是虚拟试衣!】
javascript·python·django·flask·github·pyqt·fastapi