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

相关推荐
用户69371750013842 小时前
大模型蒸馏到底在蒸什么?一篇文章搞懂知识蒸馏概念
前端·后端·github
徐小夕2 小时前
实测 10 个前端 UI 生成开源 Skill|AI 输出直达上线标准
前端·vue.js·github
得物技术3 小时前
Computer Use与Browser Use:揭秘Agent如何操作电脑和浏览器|得物技术
数据库·github·ai编程
无奈笑天下16 小时前
Linux上kdump故障标准处理流程
linux·运维·服务器·github
李永奉17 小时前
Git和GitHub-用操作命令控制Git的工作区、暂存区、本地仓库之间状态的提交教程
git·github
用户693717500138419 小时前
AI 越强,为什么我们反而越来越担心失业?
前端·后端·github
粥里有勺糖1 天前
视野修炼-技术周刊第138期 | 不要让 AI 代表你
前端·github·aigc
小帅不太帅1 天前
Gemini 4 很顺手,但 agy CLI 看不见上下文和额度,我做了个开源状态栏
github·agent
一条Go1 天前
ent + PostgreSQL:部分唯一索引怎么表达「全表最多一个」
后端·github
一条Go1 天前
开源新生代雷达 · 第 21 期
github