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

相关推荐
2501_946242937 小时前
MPV-EASY Player (MPV播放器) v0.41.0.1
数据库·经验分享·云计算·计算机外设·github·电脑·csdn开发云
CoderJia程序员甲8 小时前
GitHub 热榜项目 - 日榜(2025-12-30)
git·ai·开源·llm·github
夜流冰10 小时前
Git - github-git-cheat-sheet
git·github
阿里嘎多学长11 小时前
2025-12-30 GitHub 热点项目精选
开发语言·程序员·github·代码托管
AutoMQ12 小时前
[特殊字符] 庆祝 AutoMQ 在 GitHub 上突破 9k Stars!
github
南知意-12 小时前
GitHub 6K Star! 一款完全免费的音乐播放器,爽听VIP歌曲!
linux·windows·开源·github·开源软件·mac
CoderJia程序员甲18 小时前
GitHub 热榜项目 - 日榜(2025-12-31)
开源·大模型·llm·github·ai教程
Yulki18 小时前
【经验分享】Git如何连接Github私有仓库
经验分享·git·github
阿里嘎多学长18 小时前
2025-12-31 GitHub 热点项目精选
开发语言·程序员·github·代码托管
安得权19 小时前
使用GitHub CLI(gh)来创建 GitHub Issue
github·issue