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

相关推荐
懂得节能嘛.17 小时前
【GitHub小娱乐】GitHub个人主页ProFile美化
程序人生·github·娱乐
量子位18 小时前
GitHub独立时代落幕!CEO离职创业,微软全面接管
github·ai编程
却尘19 小时前
💀 Git 考古灭迹术:让代码"从未存在过"的禁忌技法
git·github·敏捷开发
uhakadotcom20 小时前
Dask 框架深入浅出教程
面试·架构·github
报纸20081 天前
本地代码上传Github步骤
github
用户4099322502121 天前
如何让Celery任务像VIP客户一样享受优先待遇?
后端·github·trae
HelloGitHub1 天前
微软开源的 MCP 教程「GitHub 热点速览」
开源·github
掘金安东尼1 天前
🌍海外前端动态情报源清单(持续更新)
前端·面试·github
qianmoQ2 天前
GitHub 趋势日报 (2025年08月09日)
github
肩塔didi2 天前
用 Pixi 管理 Python 项目:打通Conda 和 PyPI 的边界
后端·python·github