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

相关推荐
念丶小宇6 小时前
Github上传大文件
github
极智-99611 小时前
GitHub 热榜项目-日榜精选(2026-02-03)| AI智能体、终端工具、RAG技术等 | claude-mem、99、termux-app等
人工智能·网络安全·github·ai智能体·llm应用·rag技术·torrent工具
骂我的人都死了12 小时前
DevOps架构部署
运维·ubuntu·docker·k8s·github·devops·python3.11
Alaaaaaaan12 小时前
[DevOps]使用github-action工具部署docker容器(实现提交代码一键推送部署到服务器)
服务器·前端·docker·容器·github
CryptoRzz13 小时前
德国股票数据 API 对接实战(DAX 指数与实时行情)
websocket·区块链·github·分布式账本
Tipriest_13 小时前
GitHub Gist 功能详解:从入门到进阶
github·gist
困惑阿三14 小时前
CloudflarePages+GitHub零成本博客搭建手册
github
猫头虎15 小时前
2026全网最热Claude Skills工具箱,GitHub上最受欢迎的7大Skills开源AI技能库
langchain·开源·prompt·github·aigc·ai编程·agi
CoderJia程序员甲15 小时前
GitHub 热榜项目 - 日榜(2026-02-03)
git·ai·开源·llm·github
MicrosoftReactor18 小时前
技术速递|使用 GitHub Copilot SDK 将智能体集成到任何应用中
ai·github·copilot