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

相关推荐
miofly1 小时前
Gemini 4 Carbon发布:安全基准领先,幻觉率升至11%
开源·github
科小怪2 小时前
万能文件格式转换器Filee下载安装全流程图解:255种格式离线转,不用装Office(2026最新)
github·格式转换·软件推荐·下载教程
徐小夕2 小时前
扒了JitWord的源码,我终于搞懂了企业级在线Word到底有多难写
前端·vue.js·github
miofly4 小时前
GitHub 日榜趋势速报 | 2026-10-29
开源·github
u13013016 小时前
GitHub 热榜项目:日榜(2026-10-27)
人工智能·github
zroooo16 小时前
GitHub Flow
github
粥里有勺糖17 小时前
视野修炼-技术周刊第137期 | 编程已经面目全非
前端·github·ai编程
miofly17 小时前
GitHub 今日推荐|rea:用 MCP 把反编译器和 AI agent 接到一起的逆向工具
typescript·开源·github
MicrosoftReactor18 小时前
技术速递|超越一刀切:为 GitHub Copilot CLI 和 VS Code 实现决策路由
vscode·ai·github·copilot·决策路由
m4Rk_18 小时前
【论文阅读】Agent 记忆机制(113):Agentic Memory Management——从“检索相关信息”走向“管理 Agent 内部记忆”
论文阅读·人工智能·学习·开源·github