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

相关推荐
用户202252215063 小时前
我在 DSH 做了个 AI 交付验收台:没有证据,就不算通过
github
前端市界4 小时前
Pro React Admin: 统一工程底座,承载多种应用...
前端·github
穆梓兰煊8 小时前
Rust 重写 AI 基础设施的工程逻辑
github
邱杰4709 小时前
数智人事系统(三):Spring Boot 3.4 骨架与配置分层
github
空空dream10 小时前
Github | 初始化空白仓库到首次推送
github
高频因子挖掘机11 小时前
A股分钟K线数据占内存:先缩小请求范围,还是换 DataFrame 工具?
后端·github·api
miofly13 小时前
Karpathy:75%人口未接触LLM,约5000人可用的内部系统已让数千智能体协作数周
开源·github
zjh102414 小时前
和 AI 一起写了个 MCP 客户端,结果最难的不是协议
github