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

相关推荐
Jinkxs1 小时前
告别996:GitHub Copilot将我的开发效率提升300%的实战记录
github·copilot
第一程序员6 小时前
Python与区块链:非科班转码者的指南
python·github
阿琳a_11 小时前
在github上部署个人的vitepress文档网站
前端·vue.js·github·网站搭建·cesium
wuxuand13 小时前
GitHub页面配置
github
darkb1rd13 小时前
claurst:Rust 重构终端编码代理实战指南
开源·github·好物分享
小雨青年14 小时前
当缓存成为生产力:GitHub Actions 缓存机制的深度优化指南
缓存·github
SUNNY_SHUN14 小时前
LiveKit Agents:基于WebRTC的实时语音视频AI Agent框架(9.9k Star)
人工智能·github·webrtc
CoderJia程序员甲14 小时前
GitHub 热榜项目 - 日榜(2026-04-03)
人工智能·ai·大模型·github·ai教程
AI成长日志14 小时前
【GitHub开源项目】Harness CI/CD平台深度解析:架构设计、核心功能与实战指南
ci/cd·开源·github