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

相关推荐
CoderJia程序员甲4 小时前
GitHub 热榜项目 - 日榜(2025-12-16)
llm·github·ai教程
bj_zhb5 小时前
Git 回退到某个 commit
git·github
openinstall全渠道统计5 小时前
开发者指南:广告投放系统搭建与前后端数据打通全流程
windows·git·oracle·eclipse·sqlite·github
测试人社区-小明6 小时前
测试领域的“云原生”进化:Serverless Testing
人工智能·科技·云原生·面试·金融·serverless·github
阿里嘎多学长6 小时前
2025-12-15 GitHub 热点项目精选
开发语言·程序员·github·代码托管
周杰伦_Jay18 小时前
【大模型数据标注】核心技术与优秀开源框架
人工智能·机器学习·eureka·开源·github
吴敬悦20 小时前
私有的 GitHub Package 怎么拉取?
npm·github
小胖霞1 天前
全栈系列(15)github Actions自动化部署前端vue
前端·node.js·github
CoderJia程序员甲1 天前
GitHub 热榜项目 - 日榜(2025-12-15)
git·ai·开源·llm·github
知行力1 天前
【GitHub每日速递 20251215】微软开源12周26课机器学习入门课程,多语言支持还能离线学!
机器学习·开源·github