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

相关推荐
wflynn34 分钟前
GitHub 今日推荐|xcl:在 Windows PC 上直接运行 Xbox Series X|S 游戏
rust·开源·github·d3d12·gdk·rdna2
逛逛GitHub1 小时前
本周 TOP 11 排名的 GitHub 开源项目大盘点,看看能用到哪些。
github
用户69371750013842 小时前
AI 用久了,我发现自己越来越不想找人聊天了
前端·后端·github
怕浪猫14 小时前
NVIDIA 全产品谱系与演进
javascript·面试·github
一条Go14 小时前
Grafana 面板嵌入:为什么 kiosk 必须是「裸参数」
后端·github
一条Go14 小时前
开源新生代雷达 · 第 20 期
github
小帅不太帅17 小时前
一年一次黑五,为了买软件真省钱,我做了个开源小站
前端·人工智能·github
用户693717500138419 小时前
AI 帮我写了大半年的代码,我却越来越不会写代码了
前端·后端·github
长不大的杨瑞杰1 天前
GitHub Copilot Browser Use 实战:让 AI 在浏览器里调试与自动化测试
人工智能·github·copilot·playwright·github copilot·browser use
大侠Luffy1 天前
用 EmbeddingGemma 2 做一个本地照片与短视频搜索工具
开源·github·ai编程