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

相关推荐
是毛毛吧18 分钟前
GitHub热门开源项目:热点追踪+游戏开发
开源·github
CoderJia程序员甲32 分钟前
GitHub 热榜项目 - 日榜(2025-12-8)
ai·开源·llm·github·ai教程
雲帝37 分钟前
GitHub 用户切换配置
github
粟悟饭&龟波功1 小时前
【GitHub热门项目】(2025-12-08)
github
逛逛GitHub1 小时前
这个月狂揽 1.8 万 Star!这个 GitHub 项目破解了 AirPods。
github
谅望者2 小时前
从 GitHub Copilot 到 Claude Code:AI 编码的 3 年演变之旅
人工智能·github·copilot
齐齐大魔王2 小时前
系统安装概述
编辑器·github
Web极客码4 小时前
如何在WordPress网站中添加Cookie弹窗
前端·安全·github·wordpress
向阳是我5 小时前
v0.app的next.js项目自动部署到宝塔服务器教程
服务器·开发语言·javascript·github·ai编程