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

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

问题描述

从 v0.9.1 开始,我一直在使用 Visual Studio 代码.我现在遇到了使用 GitHub 和在线 Git 存储库的需要.

我已经设置了在线 Git 存储库,并且一直在使用 GitHub 将更改推送到在线存储库.我最近意识到我可以使用 Visual Studio Code 为自己节省一个步骤:编辑我的代码,然后将其发送到在线存储库.

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

这是我试图访问的在线存储库 URL:

解决方案

  1. 打开 Visual Studio Code 终端 (Ctrl + `)
  2. 编写 Git 克隆命令.例如,

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

  3. 打开刚刚克隆的文件夹(菜单文件打开文件夹)

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.

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.

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.

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

解决方案

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

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

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

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

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