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

相关推荐
week_泽5 小时前
PicGo图床搭载Github,上传博客图片
github
CoderJia程序员甲8 小时前
GitHub 热榜项目 - 日榜(2025-12-26)
开源·大模型·llm·github·ai教程
星际编程喵8 小时前
研发流程规范:Git Commit 书写标准
git·gitee·github·gitcode
阿里嘎多学长10 小时前
2025-12-25 GitHub 热点项目精选
开发语言·程序员·github·代码托管
郑同学zxc11 小时前
AI 代码助手:CodeGeex、RooCode 和 GitHub Copilot 对比
github·copilot
CoderJia程序员甲1 天前
GitHub 热榜项目 - 日榜(2025-12-24)
ai·开源·llm·github
逛逛GitHub1 天前
国产AI大模型 Minimax M2.1效果相当惊艳,赶紧试试
github
-拟墨画扇-1 天前
Git | 文件提交操作
git·gitee·github·gitcode
CoderJia程序员甲1 天前
GitHub 热榜项目 - 日榜(2025-12-25)
git·ai·开源·llm·github
A13247053121 天前
进程管理入门:查看和控制Linux进程
linux·运维·服务器·网络·chrome·github