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

相关推荐
这儿有一堆花8 小时前
Hexo博客保姆级安装教程
github
Cosimac1 天前
用 npm 做免费图床,这操作绝了!
npm·github
WaterRun1 天前
一个由Rust实现的, 好得多的Windows tree命令: tree++项目简介
rust·github
AI首席情报员_阿布1 天前
agent-browser:让 AI Agent 像人一样浏览网页(节省93% Token)
github
Sahadev_1 天前
GitHub 一周热门项目速览 | 2026年01月12日
github
37手游后端团队1 天前
gorm回读机制溯源
后端·面试·github
散峰而望1 天前
【算法竞赛】栈和 stack
开发语言·数据结构·c++·算法·leetcode·github·推荐算法
猫头虎1 天前
2026最新|GitHub 启用双因素身份验证 2FA 教程:TOTP.app 一键生成动态验证码(新手小白图文实操)
git·开源·gitlab·github·开源软件·开源协议·gitcode
爱学英语的程序员1 天前
让AI 帮我做了个个人博客(附提示词!)
人工智能·git·vue·github·node·个人博客