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

相关推荐
王飞飞不会飞37 分钟前
macbert训练过程记录
人工智能·github
じ☆ve 緈辐1 小时前
使用github上传代码(包含视频)
github
阿拉雷️2 小时前
AI编程工作流搭建实战:用Codex+Claude+GitHub Copilot搭了一套完整流水线
github·copilot·ai编程
杖雍皓4 小时前
没有服务器如何构建现代 Web 应用:平台选型与组合策略
运维·服务器·前端·react.js·github·netlify·vercel
修己xj14 小时前
差生文具多?我给自己改造了一款AI周计划工具
github
阿里嘎多学长17 小时前
2026-07-07 GitHub 热点项目精选
开发语言·程序员·github·代码托管
GoGeekBaird20 小时前
我最近在写 BeeWeave,想把 Agent 用过的上下文留住
后端·github·ai编程
DogDaoDao21 小时前
LLM:用一条命令统一所有大语言模型的 CLI 工具
人工智能·语言模型·自然语言处理·llm·github
lpfasd12321 小时前
2026年第27周科技社区趋势周报
github
阿彬学java21 小时前
Mac 本地项目推送至 GitHub 完整指南
github