如何使用 Visual Studio Code 连接到我现有的 Git 存储库? [英] How do I connect to my existing Git repository using Visual Studio Code?
问题描述
从 v0.9.1 开始,我一直在使用 Visual Studio 代码.我现在遇到了使用 GitHub 和在线 Git 存储库的需要.
我已经设置了在线 Git 存储库,并且一直在使用 GitHub 将更改推送到在线存储库.我最近意识到我可以使用 Visual Studio Code 为自己节省一个步骤:编辑我的代码,然后将其发送到在线存储库.
我对整个 Git 概念很陌生.Visual Studio Code 让我安装了Git"插件,该插件安装了 Git Bash、Git CMD 和 Git GUI.
这是我试图访问的在线存储库 URL:
- 打开 Visual Studio Code 终端 (Ctrl + `)
编写 Git 克隆命令.例如,
git clone https://github.com/angular/angular-phonecat.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.
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
- Open Visual Studio Code terminal (Ctrl + `)
Write the Git clone command. For example,
git clone https://github.com/angular/angular-phonecat.git
Open the folder you have just cloned (menu File → Open Folder)
这篇关于如何使用 Visual Studio Code 连接到我现有的 Git 存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!