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

相关推荐
码流怪侠2 小时前
【GitHub】Strix 深度解析:开源 AI 渗透测试工具的架构、原理与实战
github·agent·ai编程
OpenTiny社区5 小时前
Coding Agent 到底是怎么工作的,它又为什么会在复杂代码库里失真?
前端·github·agent
王飞飞不会飞8 小时前
macbert训练过程记录
人工智能·github
じ☆ve 緈辐8 小时前
使用github上传代码(包含视频)
github
阿拉雷️10 小时前
AI编程工作流搭建实战:用Codex+Claude+GitHub Copilot搭了一套完整流水线
github·copilot·ai编程
杖雍皓11 小时前
没有服务器如何构建现代 Web 应用:平台选型与组合策略
运维·服务器·前端·react.js·github·netlify·vercel
修己xj21 小时前
差生文具多?我给自己改造了一款AI周计划工具
github
阿里嘎多学长1 天前
2026-07-07 GitHub 热点项目精选
开发语言·程序员·github·代码托管
GoGeekBaird1 天前
我最近在写 BeeWeave,想把 Agent 用过的上下文留住
后端·github·ai编程