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

相关推荐
ssshooter8 小时前
彻底搞懂 SSH 与 Git 的“幕后交易”
git·github·全栈
irisMoon069 小时前
GitHub Copilot
github·copilot
消防大队VUE支队14 小时前
家里到底连了多少设备?这款开源神器让你一目了然
github
逛逛GitHub15 小时前
9 个 超绝的 AI 控制电脑 GitHub 开源项目。
github
QC七哥18 小时前
伪造git提交记录生成点阵字符
git·github
TimberWill19 小时前
GitHub Copilot 一键生成中文commit提示语规则设置
git·github
徐小夕19 小时前
pxcharts 多维表格开源!一款专为开发者和数据分析师打造的轻量化智能表格
前端·架构·github
NocoBase20 小时前
GitHub 上星星数量前 10 的 AI CRM 开源项目
人工智能·低代码·开源·github·无代码
CoderJia程序员甲21 小时前
GitHub 热榜项目 - 日榜(2025-12-22)
ai·开源·大模型·github·ai教程
cnnews1 天前
某讯T1刷armbian
linux·ubuntu·开源·github