当前位置:   article > 正文

VS Code与GitHub关联_code对接github

code对接github

VS Code与GitHub关联

安装git

安装VS Code

创建GitHub账号

在GitHub页面创建相应的Repository

Download 代码

  1. copy repository URL.
    在这里插入图片描述

  2. 打开Git Bash

    1. git clone 刚才复制的地址
    2. git config --global user.email "you@example.com"
    3. git config --global user.name "Your Name"
    
    • 1
    • 2
    • 3
  3. 刚才下载的代码存放在哪里?

    • 在Git Bash输入

      pwd -P
      
      • 1

在VS Code中刚才下载的项目

测试

  1. 在项目中新建一个test.txt
    在这里插入图片描述
  2. commit
    在这里插入图片描述
  3. push
    在这里插入图片描述
  4. 接着会让你登录GitHub。

完成

在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/674200
推荐阅读
相关标签
  

闽ICP备14008679号