How do I connect to my existing Git repository using Visual Studio Code?

后端 未结 4 1297
日久生厌
日久生厌 2020-12-12 21:56

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 rep

4条回答
  •  悲哀的现实
    2020-12-12 22:10

    Another option is to use the built-in Command Palette, which will walk you right through cloning a Git repository to a new directory.

    From Using Version Control in VS Code:

    You can clone a Git repository with the Git: Clone command in the Command Palette (Windows/Linux: Ctrl + Shift + P, Mac: Command + Shift + P). You will be asked for the URL of the remote repository and the parent directory under which to put the local repository.

    At the bottom of Visual Studio Code you'll get status updates to the cloning. Once that's complete an information message will display near the top, allowing you to open the folder that was created.

    Note that Visual Studio Code uses your machine's Git installation, and requires 2.0.0 or higher.

提交回复
热议问题