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

相关推荐
敢敢是只喵i13 小时前
OpenAPI 里有两个 quantity,审批规则到底在比哪个?
github
七分辣度14 小时前
GitHub/Git 常用命令及使用场景
git·github
dong_junshuai14 小时前
每天一个开源项目#160 LoopForge:把Agent交付拆成可退回的验收流程
github
Allen366816 小时前
给博客和秘书加上 HTTPS 之后的一点记录
github
laoyeye83116 小时前
手写 vLLM 分页 KV Cache(二):深入物理块分配、Block Table 与 Slot Mapping
github
Summer-Bright18 小时前
企业落地智能体,供应链签名还是空白:1862 个 MCP 服务器无认证裸奔
服务器·人工智能·github·mcp
一条Go19 小时前
Pod 终端与日志:为什么浏览器建连要先换一张 60 秒的票
后端·架构·github
一条Go19 小时前
开源新生代雷达 · 第 14 期
github
徐小夕21 小时前
万字拆解:零向量库、无模型微调,SAG2 凭什么刷新多跳问答 SOTA
前端·vue.js·github
黑土豆21 小时前
用 drawink 给业务页面加一层画板:从网页批注到无限板书
前端·javascript·github