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

相关推荐
charlie11451419119 分钟前
用 MkDocs + GitHub Actions 自动化部署项目文档
自动化·github
MemOS3 小时前
MemOS 产品更新|支持全量获取用户记忆,记忆管理与对话体验提升
github
恋猫de小郭3 小时前
Compose Multiplatform 1.10 Interop views 新特性:Overlay 和 Autosizing
android·flutter·macos·kotlin·github·objective-c·cocoa
极客小云5 小时前
【增强版 X-AnyLabeling:支持多模态图像对比标注与 YOLO 标签自动导入】
yolo·目标检测·github·语义分割
CoderJia程序员甲16 小时前
GitHub 热榜项目 - 日榜(2026-1-13)
人工智能·ai·大模型·github·ai教程
iuu_star20 小时前
项目开源-零基础掌握GitHub大文件上传(Git)
开源·github
wangruofeng20 小时前
OpenCode 上手初体验:从安装到基础使用
github·ai编程
Albert Edison21 小时前
【Git】多人协作二(不同分支下)
git·elasticsearch·svn·github
数据大魔方1 天前
【期货量化实战】豆粕期货量化交易策略(Python完整代码)
开发语言·数据库·python·算法·github·程序员创富
逛逛GitHub1 天前
这 2 个 Skills 开源项目,最近在 GitHub 上火了。
github