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

相关推荐
攀登的牵牛花2 小时前
2.1w Star 的 pretext 火在哪?
前端·github
糖猫猫_2 小时前
Kite 实现逻辑删除
后端·github
一叶萩Charles3 小时前
GitHub AI Agent 开源生态概览
人工智能·开源·github
bxri3 小时前
团队协作中的 Git 工作流(企业级实战)
git·gitee·github
第一程序员3 小时前
Python与容器化:Docker和Kubernetes实战
python·github
CoderJia程序员甲3 小时前
GitHub 热榜项目 - 日榜(2026-03-30)
人工智能·ai·大模型·github·ai教程
MicrosoftReactor4 小时前
技术速递|从想法到拉取请求:使用 GitHub Copilot CLI 构建的实用指南
github·copilot·cli
汪海游龙4 小时前
03.31 AI 精选:把通用设备改造成网络路由器的方法
github
AmyLin_20015 小时前
【pdf2md-1:开篇】高保真PDF转MarkDown附源码(标题/表格/图片全还原)
python·pdf·github·sdk·pdf2md·文档工具
irpywp5 小时前
OfficeCLl:为 AI 智能体而生的 Office 引擎
人工智能·github·开源软件