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

相关推荐
做cv的小昊2 小时前
3DGS加速&压缩指标评测方法、高斯数量变化曲线绘制——Training Time、FPS、Gaussian Number、Peak Memory
笔记·计算机视觉·3d·开源·github·图形渲染·3dgs
CoderJia程序员甲4 小时前
GitHub 热榜项目 - 日榜(20260116)
ai·开源·大模型·github·ai教程
二哈喇子!7 小时前
Git下载安装教程
git·github
leader丶7 小时前
实现GitHub和Google第三方登录
github
Codeking__18 小时前
Redis——基本通用命令
redis·git·github
独自破碎E18 小时前
下载 GitHub 仓库「单个文件夹」的方法
github
大厂技术总监下海19 小时前
“Today I Learned”(TIL):一种比写博客更可持续的知识沉淀习惯
大数据·开源·github
掘金安东尼1 天前
⏰前端周刊第 448 期(2026年1月4日-1月10日)
前端·面试·github
掘金安东尼1 天前
向大家介绍《开发者博主联盟》🚀
前端·程序员·github
梅羽落1 天前
fastapi速成2
python·github·fastapi