上传code至github的步骤

一、步骤

直接来干货:

1、首先在github中创建一个repository。

VsCode使用Git上传代码至GitHub上_vscode提交github-CSDN博客

2、然后按照github的官网操作,或者以下链接,在VScode的终端中输入一系列代码push即可。

vscode代码上传到github仓库 - 知乎w

二、问题

(1)如果你第一次上传错了,需要重新上传。那么你在第二步是会发生
ERROR: Repository not found.

So a possible solution here would be simply removing the existing remote:

那么需要在终端里把original删除[1]
git remote remove origin

references

1\] https://www.cloudbees.com/blog/remote-origin-already-exists-error

相关推荐
矢志航天的阿洪7 小时前
从GitHub到本地:Python IGRF库环境配置完全指南
开发语言·python·github
chunmiao303211 小时前
了解github上,watch,fork,star代表啥
github
CoderJia程序员甲11 小时前
GitHub 热榜项目 - 日榜(2026-01-30)
开源·大模型·llm·github·ai教程
Aliex_git12 小时前
Claude Code 使用笔记(四)- GitHub Claude 审查助手
人工智能·笔记·学习·github·ai编程
MicrosoftReactor13 小时前
技术速递|使用 GitHub Copilot SDK 构建智能体:自动化技术更新追踪实战指南
自动化·github·copilot
LeenixP13 小时前
GitHub Copilot 调用第三方模型API
ai·github·copilot·ai编程·oai compatible
WINDHILL_风丘科技13 小时前
面对汽车三高试验挑战,TFM远程管理平台能否成为破局关键?
人工智能·汽车·github
lambert.wang1 天前
当使用 uv 下载 Python 解释器时出现异常,通常是因为网络连接问题导致无法从 GitHub 下载安装包
python·github·uv
Ama_tor1 天前
obsidian插件系列|从github下载插件banners及简单应用
github·obsidian·banner
智绘前端1 天前
GitHub 登录功能开发 SOP
人工智能·typescript·github·reactjs