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

相关推荐
桃花键神9 小时前
2025远程桌面软件年终推荐榜单:ToDesk、RustDesk、向日葵、UU和QQ远程
github
携欢10 小时前
POrtSwigger靶场之Exploiting XXE using external entities to retrieve files通关秘籍
网络·安全·github
时光Autistic12 小时前
【安装教程】Git安装完整步骤
git·github
-拟墨画扇-15 小时前
Git | 变基操作
git·gitee·github·gitcode
lifewange18 小时前
Git/Gitee/GitHub有什么区别
git·gitee·github
222you19 小时前
智慧社区:调用腾讯云的人脸识别接口完成人脸采集的功能
云计算·github·腾讯云
逛逛GitHub19 小时前
推荐 8 个爷青回 GitHub 开源游戏,太怀念了。
github
QQ__176461982419 小时前
Ubuntu系统克隆Github仓库项目到本地
linux·ubuntu·github
小徐_23331 天前
2025 前端开源三年,npm 发包卡我半天
前端·npm·github
落枫592 天前
如何快速搭建一个JAVA持续交付环境
后端·github