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

相关推荐
徐小夕13 小时前
表格、文档、甘特、大屏、表单一站打通:pxcharts超级表格4.0正式上线!
前端·算法·github
vortex514 小时前
GitHub 隐藏URL技巧
github
峰向AI14 小时前
10年开源云盘 Nextcloud:你自己的云,你自己的规则,告别付费
github
灰灰202617 小时前
GitHub 国内下载加速工具合集
github·github下载加速
m4Rk_17 小时前
【论文阅读】Agent 记忆机制(50):PACE——按下一步预测价值动态分配历史记忆粒度
论文阅读·人工智能·学习·开源·github
中科三方20 小时前
DNS解析中的“委派“是什么意思?如何正确配置NS记录?
git·github·dns解析
保持清醒的坐标系20 小时前
腾讯开源 teamai-cli:让全队 AI 工具用同一套"员工手册"
后端·github
赫媒派21 小时前
Cursor Origin:SpaceX 收购后的首个产品,能否挑战 GitHub?
github·ai编程·cursor
深念Y1 天前
Fork 仓库瘦身指南:从 90MB 到 11MB
git·github·仓库·历史·瘦身·fork·上游
智恒百亿1 天前
AI服务器涨价15%背后:5090八卡智算服务器的选型与成本分析
大数据·服务器·人工智能·github