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

相关推荐
YuanDaima20487 小时前
GitHub 与 Gitee 多平台 SSH Key 配置指南
gitee·开源·ssh·github·开源软件·key·免密登录
散峰而望7 小时前
基本魔法语言数组 (一) (C语言)
c语言·开发语言·编辑器·github·visual studio code·visual studio
草梅友仁7 小时前
RSS Impact 1.17.0 发布与 Docker 服务器迁移经验 | 2025 年第 44 周草梅周报
docker·开源·github
那我掉的头发算什么8 小时前
【数据库】事务
数据库·sql·mysql·github·数据库开发
CoderJia程序员甲10 小时前
GitHub 热榜项目 - 日榜(2025-11-01)
ai·开源·大模型·github·ai教程
散峰而望13 小时前
基本魔法语言数组 (二) (C语言)
c语言·开发语言·github·visual studio
夕阳染色的坡道21 小时前
Github 管理项目常用的基本命令
github
CoderJia程序员甲21 小时前
GitHub 热榜项目 - 日榜(2025-10-31)
ai·开源·llm·github
2501_938790071 天前
从 0 到 1:解决 VsCode 远程连服务器后 Github Copilot 无法使用问题
服务器·vscode·github
松垮的屁兜1 天前
【gitlab】新建项目库并提交初始框架
gitlab·github