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

相关推荐
程序员Soldier2 小时前
open-AutoGLM部署
github
Emma歌小白3 小时前
把代码上传到 GitHub Gist
github
逛逛GitHub3 小时前
挖到 5 个很哇塞的 AI 开源项目,快来瞧瞧。
github
CoderJia程序员甲3 小时前
GitHub 热榜项目 - 日榜(2025-12-11)
git·ai·开源·llm·github
码界奇点4 小时前
基于Python与GitHub Actions的正方教务成绩自动推送系统设计与实现
开发语言·python·车载系统·自动化·毕业设计·github·源代码管理
测试人社区-小明7 小时前
量子计算对测试未来的潜在影响:软件测试的范式变革
opencv·测试工具·pycharm·机器人·自动化·github·量子计算
uhakadotcom7 小时前
Tomli 全面教程:常用 API 串联与实战指南
前端·面试·github
lin62534227 小时前
Android仿小米视频播放器的缩放滚轮
android·git·github
mit6.8248 小时前
[Solution] Github Permission denied (publickey)
github