上传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

相关推荐
阿里嘎多学长5 小时前
2026-02-07 GitHub 热点项目精选
开发语言·程序员·github·代码托管
leikooo9 小时前
基于 GitHub Actions 的 Notion RSS 自动化部署指南
python·github·rss
微尘hjx10 小时前
【GitHub 代码仓 02】git命令操作示例
git·elasticsearch·github
逛逛GitHub11 小时前
GLM-5 发布了!10 分钟傻瓜化部署 OpenClaw 到飞书。
github
蜜汁小强11 小时前
为 Github 创建本地 .ssh 关联 (RSA 以支持老系统)
运维·ssh·github
雪域迷影13 小时前
sdl3-sample-简明教程,指导如何在包括移动和 Web 在内的各种平台上构建和使用 SDL3
github·c·开源软件·sdl3
laoliu199614 小时前
开源 FRP GUI 客户端
git·开源·github
阿里嘎多学长14 小时前
2026-02-12 GitHub 热点项目精选
开发语言·程序员·github·代码托管
MemOS15 小时前
MemOS OpenClaw 插件测评结果来啦!Tokens 消耗降低 72%+
python·github
MicrosoftReactor15 小时前
技术速递|为 GitHub Copilot 构建智能体记忆系统
github·copilot