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

相关推荐
aircrushin3 小时前
英语学废了?这个让10万+用户上瘾的神器,让我2个月从哑巴英语到流利对话!
github
Sirens.4 小时前
Java异常处理解析:从防御式编程到自定义异常类
java·开发语言·笔记·学习·github·javac
Android轮子哥6 小时前
Android 12 SplashScreen 一种另类的适配方案
android·github
chenshiming8027 小时前
在GitHub上创建 Deploy keys 步骤
github
Of Chen8 小时前
github+hexo搭建matery主题的个人博客
github·个人博客
逛逛GitHub8 小时前
让 AI 接管 Windows 和 MacOS,这个 GitHub 开源项目牛啊。
github
BER_c9 小时前
Git 提交历史太乱?教你清理并规范 commit message
github
字节幺零二四9 小时前
累计下载 3000+!我的自制实用工具合集现已同步至 GitHub
github·局域网·转换·传输·字幕
小康小小涵1 天前
睿抗机器人大赛魔力元宝
python·ubuntu·gitee·github
QT 小鲜肉1 天前
【Linux命令大全】002.文件传输之uucico命令(实操篇)
linux·运维·服务器·chrome·笔记·github