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

相关推荐
Mo_YuO.o3 小时前
工作区 暂存区 版本库
git·gitee·github
深念Y3 小时前
本地Git仓库推送到Gitee教程
git·gitee·github·仓库·项目·源代码管理·初始化
白云千载尽4 小时前
a800上gazebo无法使用gpu的问题修复
网络·git·github
petunsecn10 小时前
多 GitHub 账号与多平台 Git 使用(附加场景:就想用指定账号clone)
git·github
陈希瑞11 小时前
GitHub Skill Forge 深度解析:把任意 GitHub 仓库一键锻造成 AI 可调用“技能包”
人工智能·github
编程武士11 小时前
Github 开源项目 Spec Kit 介绍:让你的 Vibe Coding 更加稳定
github·vibecoding
CoderJia程序员甲11 小时前
GitHub 热榜项目 - 日榜(2026-01-23)
人工智能·ai·大模型·github·ai教程
Ms.AG11 小时前
GitHub 学生认证(保姆级教学)
vscode·github
forestsea11 小时前
GitHub HTTPS 提交代码与个人访问令牌配置指南
网络协议·https·github
寻道码路11 小时前
【GitHub周榜】Agno:快速构建多模态智能体的轻量级框架,开发提速 10000 倍
人工智能·语言模型·开源·github·aigc·ai编程