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

相关推荐
是jin奥19 分钟前
Claude Code + GitHub 自动化工作流整理
运维·自动化·github
qianx771 小时前
KiteNote: 结合MicrosoftToDo和Obsidian优势的日常笔记软件
github
用户466969256971 小时前
AI编码账单砍60%:这个84K星的小工具,一行命令装好
github
简创AIGC陶先生1 小时前
【直播切片工作台】第22章:素材下载与 URL 重写
github
KevinAshen672 小时前
用 Go 修复旧下载工具:从接口 403 到凭证截断的完整复盘
go·github
miofly2 小时前
GitHub 今日推荐|Edge0:让大号 MoE 模型在一台 Mac 上流式跑起来
python·开源·github
shandianchengzi3 小时前
【记录】LLM|ChatGPT连接Github并管理
chatgpt·github
徐小夕4 小时前
JitOffice:把办公、AI 与审批装进同一个平台
前端·vue.js·github
徐小夕4 小时前
万字分享:为什么我们要自研Word解析引擎?JitWord 解析引擎 4.0 深度复盘
前端·vue.js·github
miofly6 小时前
GitHub 日榜趋势速报 | 2026-10-30
开源·github