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

相关推荐
qinyia12 分钟前
WisdomSSH解决因未使用Docker资源导致的磁盘空间不足问题
运维·服务器·人工智能·后端·docker·ssh·github
b***65321 小时前
【解决】RESP.app GUI for Redis 连接不上redis服务器
服务器·redis·github
mortimer7 小时前
破局视频翻译【最后一公里】––从语音克隆到口型对齐的完整工程思路
python·github·aigc
散峰而望10 小时前
C++数组(二)(算法竞赛)
开发语言·c++·算法·github
码农很忙15 小时前
从零开始搭建个人博客:基于Hexo + GitHub Pages的完整指南
github
徐同保15 小时前
如何使用GitKraken把git项目迁移到另一个平台,并保存所有提交记录,例如把github上的项目,迁移到gitee
git·gitee·github
whysqwhw17 小时前
Kotlin `by`关键字特性深度解析
github
uhakadotcom18 小时前
Loguru 全面教程:常用 API 串联与实战指南
后端·面试·github
逛逛GitHub20 小时前
推荐 5 个 yyds 的 Claude Skills 开源项目。
github
weixin_4365250720 小时前
使用 idea 命令行构建 Docker 镜像并部署到云服务器
linux·docker·github