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

相关推荐
weelinking8 小时前
【产品】00_产品经理用Claude实现产品系列介绍
数据库·人工智能·sql·数据挖掘·github·产品经理
Hommy8810 小时前
【剪映小助手】字幕信息生成接口
github·aigc·剪映小助手·视频剪辑自动化
用户07806253471917 小时前
纯前端实现 AI 抠图:我如何用 ONNX + Canvas 在浏览器里跑背景移除
github
白鲸开源18 小时前
干货!SeaTunnel(2.3.12)高阶用法(一):核心概念之数据流
java·大数据·github
逛逛GitHub18 小时前
Karpathy 加入 Anthropic 了,盘点他开源的 5 个硬核 GitHub 项目。
github
你的保护色18 小时前
RAID学习
github
ChampaignWolf18 小时前
GitHub Copilot 用于 SAP ABAP 在 VS Code 中:本地部署团队设置指南
github·copilot
VIV-18 小时前
Pycharm项目上传到Github
ide·pycharm·github
xG8XPvV5d18 小时前
GitHub Actions自动化部署全攻略
运维·自动化·github
ChampaignWolf21 小时前
GitHub 发布全新 Copilot 独立应用,正面硬刚 Claude Code 与 Codex
github·copilot