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

相关推荐
go54631584655 小时前
指导初学者使用Anaconda运行GitHub上One - DM项目的步骤
github
时光追逐者18 小时前
Visual Studio使用GitHub Copilot提高.NET开发工作效率
c#·github·.net·copilot·ai编程·微软技术·visual studio
油泼辣子多加1 天前
2025年02月01日Github流行趋势
github
萨文 摩尔杰1 天前
hexo部署到github page时,hexo d后page里面绑定的个人域名消失的问题
github
油泼辣子多加2 天前
2025年01月31日Github流行趋势
github
Ronin-Lotus2 天前
上位机知识篇---Git&GitHub
git·学习·github
AI悦创|编程1v13 天前
GitHub Actions定时任务配置完全指南:从Cron语法到实战示例
github
**kwargs3 天前
ssh密钥登录GitHub时一直提示“Error: Permission denied (publickey)”
运维·ssh·github
dreadp3 天前
解锁豆瓣高清海报:深度爬虫与requests进阶之路
前端·爬虫·python·beautifulsoup·github·requests
江_小_白4 天前
fatal: unable to access ‘https://github
github