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

相关推荐
uhakadotcom3 小时前
Python Protobuf 全面教程:常用 API 串联与实战指南
前端·面试·github
周杰伦_Jay4 小时前
【GOFrame】模块化框架与生产级实践
开发语言·gitlab·github
托马斯-酷涛9 小时前
加速GitHub加载速度-最终篇
github·proxy·代理
yuguo.im9 小时前
5 分钟快速入门 Github Actions
ci/cd·github·actions
阿里嘎多学长9 小时前
2025-12-12 GitHub 热点项目精选
开发语言·程序员·github·代码托管
gAlAxy...11 小时前
详解 Gitee/GitHub 中 HTTPS/SSH 方式数据库仓库创建与本地连接
https·gitee·github
测试人社区-小明12 小时前
AI在金融软件测试中的实践
人工智能·测试工具·金融·pycharm·机器人·github·量子计算
CoderJia程序员甲12 小时前
GitHub 热榜项目 - 日榜(2025-12-12)
ai·开源·大模型·github·ai教程
yuguo.im12 小时前
5 分钟快速入门 Gitlab CI/CD
ci/cd·gitlab·github
好好研究12 小时前
GitHub - 远程仓库推送的方式
github