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

相关推荐
Good_Starry5 小时前
Git介绍--github/gitee/gitlab使用
git·gitee·gitlab·github
云端奇趣10 小时前
探索 3 个有趣的 GitHub 学习资源库
经验分享·git·学习·github
运营黑客11 小时前
发现一超级Prompt:让GPT-4o、Claude3.5性能再升级(附保姆级教程)
github
記億揺晃着的那天12 小时前
Github优质项目推荐-第二期
github
Uncertainty!!16 小时前
GitHub入门与实践
github
罗曼蒂克在消亡16 小时前
github项目——gpt-pilot自动创建应用
gpt·github·github项目
篝火18 小时前
MindSearch 部署到Github Codespace 和 Hugging Face Space
人工智能·python·github
无限大.1 天前
0基础学前端 day6 -- 搭建github pages静态网址
前端·github
理论最高的吻2 天前
项目配置说明
github
燕雀安知鸿鹄之志哉.2 天前
玄机:第九章-algo
网络·经验分享·安全·web安全·网络安全·github