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

相关推荐
Devlive 开源社区7 分钟前
技术周报|OpenCode登顶GitHub周榜,AI编程工具热度持续飙升
github·ai编程
阿里嘎多学长7 分钟前
2026-01-12 GitHub 热点项目精选
开发语言·程序员·github·代码托管
YQ_0112 分钟前
GitHub 新电脑配置 & 首次上传项目
github
修己xj11 小时前
解决Github QQ邮箱注册难题:绕过“Unable to verify your captcha response”错误
github
AI首席情报员_阿布14 小时前
2026 GitHub 最火的 10 个 AI Agent 框架:普通开发者的选型指南
github
阿里嘎多学长19 小时前
2026-01-11 GitHub 热点项目精选
开发语言·程序员·github·代码托管
三两肉19 小时前
HTTPS ECDHE 握手全解析
网络协议·https·github·rsa·echde
啊湘20 小时前
vscode 使用 github (适用CURSOR等使用)
ide·vscode·github·cursor·mcp
l1t20 小时前
利用DeepSeek辅助拉取GitHub存储库目录跳过特定文件方法
人工智能·github·deepseek
Hilaku20 小时前
我用 Gemini 3 Pro 手搓了一个并发邮件群发神器(附源码)
前端·javascript·github