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

相关推荐
Sahadev_1 天前
GitHub 一周热门项目速览 | 2025年12月22日
github
happygrilclh1 天前
SVN转移服务器仓库后,旧服务器不能被访问的解决办法
github
starsky_walker2 天前
【工具教程系列】--如何配置github的ssh
运维·ssh·github
逛逛GitHub2 天前
最近爆火的人生K线!GitHub 上有开源,真的太有趣了。
github
怣疯knight2 天前
windows比较好用的翻译软件
开源·github
Bigger2 天前
npm Classic Token 作废后,CI/CD 自动发包如何改?一份完整踩坑复盘
ci/cd·npm·github
YMGogre2 天前
GitHub 仓库管理员
git·github
古城小栈2 天前
GitHub Copilot for Java:上下文感知重构建议实操
java·github·copilot
CoderJia程序员甲2 天前
GitHub 热榜项目 - 日榜(2025-12-23)
ai·开源·大模型·github·ai教程
于谦2 天前
✨ feat(app1,pkg1): monorepo生成规范化提交信息的最优解 - committier
javascript·github·代码规范