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

相关推荐
陌上花开缓缓归以4 小时前
Linux 5.4内核版本内核宏梳理
linux·网络·github
JavaGuide8 小时前
屠榜 GitHub,被迫改名!2026 年最火的 AI 助手 Moltbot
ai·github
CoderJia程序员甲9 小时前
GitHub 热榜项目 - 日榜(2026-01-28)
人工智能·ai·大模型·github·ai教程
极智-99612 小时前
GitHub 热榜项目-日榜精选(2026-01-28)|实用资源与工具、开源LLM应用 | pi-mono、supermemory、mlx-audio等
开源·github·语音处理·密钥管理·llm应用·iptv资源
Lust Dusk12 小时前
如何通过GitHub找到一个人?
安全·网络安全·github
ONLYOFFICE12 小时前
ONLYOFFICE 桌面编辑器正式成为 ShaniOS 默认办公套件
linux·编辑器·github·onlyoffice
独自破碎E12 小时前
如何把本地文件夹和已存在的 GitHub 远程仓库同步
github
嘿吖嘿嘿~12 小时前
怎么解决git@github.com出现Permission denied (publickey)的问题
git·github
独自破碎E13 小时前
CRLF与LF的行分隔符警告⚠️
github
CoderJia程序员甲1 天前
GitHub 热榜项目 - 日榜(2026-01-27)
github