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

相关推荐
inhere23 分钟前
gookit/goutil v0.7.0 新版本发布:模块调整与功能增强
开源·go·github
用户621024530921 小时前
React:当UI开发从「搬砖」变成「搭乐高」的魔法时刻!
github
用户3918384172111 小时前
Jupyter Notebook:不只是个笔记本,而是你的科学计算驾驶舱!
github
用户255581606901 小时前
Laravel实战指南:从工匠工具到现代PHP开发的艺术
github
用户082699822601 小时前
Docker革命:为什么你的下一个项目必须容器化?🚀
github
用户709991950831 小时前
从零开始认识Elasticsearch:不只是搜索引擎的分布式神器!
github
用户24961588305991 小时前
Express.js:让Node.js搞Web开发爽到飞起!(以及为啥你离不开它)
github
CC码码1 小时前
管理你的多个 Git 密钥(多平台多账号)
git·gitlab·github
CC码码1 小时前
管理你的多个 Git 密钥(单平台多账号)
git·gitlab·github
云原生社区2 小时前
Fabric:为你的命令行安上 AI 管道
人工智能·开源·github