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

相关推荐
摇滚侠3 小时前
零基础小白自学 Git_Github 教程,GitHub Action 基础概念,笔记22
笔记·git·github
追逐时光者4 小时前
一个免费且实用的 GitHub 工具,可将 GitHub 的 README 翻译成多种语言!
github
逛逛GitHub8 小时前
发现 3 个牛哄哄 AI 的 GitHub 开源项目,速速收藏。
github
1024肥宅9 小时前
告别异地登录告警!用 GitHub Self-Hosted Runner 打造“零打扰”全栈自动化部署
前端·后端·github
源码方舟11 小时前
【GitHub和Gitee两大平台对比分析】
gitee·github
摇滚侠11 小时前
零基础小白自学 Git_Github 教程,Git 命令行操作2,笔记19
笔记·git·github
NocoBase12 小时前
社区用户分享:用 NocoBase 搭建可落地的 ERP
低代码·开源·github
二进制情书13 小时前
510-GitHub基础
github
uhakadotcom16 小时前
全面解析:GeoJSON 与 TopoJSON 的定义、差异及适用场景
前端·面试·github