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

相关推荐
weixin_6689 分钟前
GitHub 2026年AI项目热度分析报告-AI分析-分享
人工智能·github
MicrosoftReactor2 小时前
技术速递|GitHub Copilot CLI 斜杠命令速查表
github·copilot·cli
wu~9702 小时前
GitHub永不遗忘,使用git push -f来覆盖的提交依旧保留
git·github
m0_694845572 小时前
music-website 是什么?前后端分离音乐网站部署实战
linux·运维·服务器·云计算·github
独自破碎E2 小时前
已经 Push 到远程的提交,如何修改 Commit 信息?
开发语言·github
jiang_changsheng5 小时前
工作流agent汇总分析 2
java·人工智能·git·python·机器学习·github·语音识别
馨谙5 小时前
Ansible 配置文件详解:让自动化管理更轻松
运维·github·ansible
Gofarlic_OMS6 小时前
Altium许可证状态自动化监控方案
大数据·运维·服务器·人工智能·自动化·github
岱宗夫up6 小时前
GitHub Desktop如何设置中文?这不是个简单问题
git·github
m0_694845576 小时前
HandBrake 是什么?视频转码工具使用与服务器部署教程
服务器·前端·pdf·开源·github·音视频