如何使用Visual Studio Code连接到现有的Git存储库? [英] How do I connect to my existing Git repository using Visual Studio Code?

查看:204
本文介绍了如何使用Visual Studio Code连接到现有的Git存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从v0.9.1开始,我已经使用Visual Studio代码很长时间了.现在,我遇到了使用GitHub和在线Git存储库的需求.

I've been using Visual Studio code for a long time, since v0.9.1. I now have run into the need to use GitHub and an online Git repository.

我已经建立了在线Git存储库,并一直在使用GitHub推动更改为在线存储库.最近,我意识到我可以使用Visual Studio Code来做到这两个步骤:编辑我的代码,然后将其发送到在线存储库.

I have the online Git repository set up and have been pushing changing to the online repository using GitHub. I have recently come to realize I can save myself a step with using Visual Studio Code to do both: to edit my code, then send it up to the online repository.

我对整个Git概念非常陌生. Visual Studio Code让我安装了"Git"插件,该插件安装了Git Bash,Git CMD和Git GUI.

I am very new to the whole Git concept. Visual Studio Code had me install the "Git" plugin which installed Git Bash, Git CMD, and Git GUI.

这是我要访问的在线存储库URL: https://github.com/SpectrumGraphics/Spectrum-Graphic-Designs.git

This is the online repository URL I'm trying to get to: https://github.com/SpectrumGraphics/Spectrum-Graphic-Designs.git

推荐答案

  1. 打开Visual Studio代码终端( Ctrl + `)
  2. 编写Git clone命令.例如,

  1. Open Visual Studio Code terminal (Ctrl + `)
  2. Write the Git clone command. For example,

git clone https://github.com/angular/angular-phonecat.git

  • 打开您刚刚克隆的文件夹(菜单 File Open Folder )

  • Open the folder you have just cloned (menu FileOpen Folder)

    这篇关于如何使用Visual Studio Code连接到现有的Git存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆