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

相关推荐
ccino .2 小时前
【将更改从 GitHub Desktop 推送到 GitHub】
github
lpfasd1232 小时前
PyGithub用法详解
git·python·github
沉淀の沙4 小时前
1-20[IDEA远程链接GitHub失效问题]
github
007张三丰5 小时前
git中的SSH 公钥配置详细指南(GitHub、GitLab、Gitee平台适用)
git·ssh·github
Xiaok10185 小时前
解决GitHub双重认证问题:使用Chrome插件Authenticator
chrome·github·2fa
CoderJia程序员甲5 小时前
GitHub 热榜项目 - 日榜(2026-01-20)
开源·大模型·llm·github·ai教程
我寄人间雪满头丶6 小时前
GitHub 私有仓库 SSH 访问配置 SOP(Mac / Windows 通用)
macos·ssh·github
竹之却9 小时前
【Hexo】Hexo搭建教程
github·hexo·blog
是毛毛吧10 小时前
GitHub热榜----前端已死?AionUi 横空出世:首个开源“生成式UI”框架,让 AI 在运行时“手搓”界面
前端·开源·github
不会kao代码的小王10 小时前
深信服超融合 HCI 核心技术解析:aSV、aSAN 与 aNET 的协同架构
运维·服务器·网络·数据库·github