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

相关推荐
周杰伦_Jay43 分钟前
【大模型数据标注】核心技术与优秀开源框架
人工智能·机器学习·eureka·开源·github
吴敬悦3 小时前
私有的 GitHub Package 怎么拉取?
npm·github
小胖霞6 小时前
全栈系列(15)github Actions自动化部署前端vue
前端·node.js·github
CoderJia程序员甲7 小时前
GitHub 热榜项目 - 日榜(2025-12-15)
git·ai·开源·llm·github
知行力9 小时前
【GitHub每日速递 20251215】微软开源12周26课机器学习入门课程,多语言支持还能离线学!
机器学习·开源·github
NZT-4810 小时前
服务器访问github受限的解决办法
运维·服务器·github
永恒-龙啸10 小时前
spooling假脱机输入输出模拟
c语言·开源·github
逛逛GitHub11 小时前
推荐 4 个 yyds 的 AI 控制安卓手机的 GitHub 项目。
github
桃花岛主7011 小时前
命令提交git到github上的步骤
git·github
rockmelodies12 小时前
本地 PyCharm 生成的 Git 仓库与 GitHub 远程仓库关联起来
git·pycharm·github