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

相关推荐

  1. codegithub步骤

    2024-06-06 17:40:07       29 阅读
  2. github代码遇到问题

    2024-06-06 17:40:07       60 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-06 17:40:07       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-06 17:40:07       100 阅读
  3. 在Django里面运行非项目文件

    2024-06-06 17:40:07       82 阅读
  4. Python语言-面向对象

    2024-06-06 17:40:07       91 阅读

热门阅读

  1. 电脑问题和解决方法记录

    2024-06-06 17:40:07       23 阅读
  2. MyEclipse 新手使用教程

    2024-06-06 17:40:07       35 阅读
  3. 深度解读:Apache Kafka如何超越消息引擎的界限

    2024-06-06 17:40:07       25 阅读
  4. C#语言进阶(二)—事件 第三篇(事件访问器)

    2024-06-06 17:40:07       34 阅读
  5. WebRTC 在 iOS 端实现一对一通信

    2024-06-06 17:40:07       26 阅读
  6. 【OpenCV】基于opencv的视频间隔抽帧脚本

    2024-06-06 17:40:07       41 阅读
  7. HarmonyOS LocalStorage使用

    2024-06-06 17:40:07       30 阅读
  8. ceph报错整理

    2024-06-06 17:40:07       34 阅读
  9. Debian12安装K8S

    2024-06-06 17:40:07       27 阅读