Starting from the 1.8 (November) update of vscode you can now clone your Git repository from within the vscode.

You can execute it from the Command Palette. Press F1 (or ⇧+⌘+P on Mac) and search for Git: Clone. Confirm the command and paste the repository url.

Answer from Jakub Synowiec on Stack Overflow
🌐
Visual Studio Code
code.visualstudio.com › docs › sourcecontrol › repos-remotes
Working with repositories and remotes
November 3, 2021 - To browse repositories on GitHub, select Clone from GitHub, sign in when prompted, and choose a repository from the list. Cloning a public repository by URL doesn't generally require signing in.
🌐
GeeksforGeeks
geeksforgeeks.org › git › how-to-clone-a-project-from-github-using-vscode
How to Clone a Project From GitHub using VSCode? - GeeksforGeeks
May 16, 2024 - Visual Git Interface: VSCode offers a visual interface for Git operations, making it easier to manage repositories, branches, and commits. Seamless GitHub Integration: With VSCode's GitHub integration, developers can browse, clone, and manage GitHub repositories without leaving the editor.
Discussions

Where is VS Code cloning a git repository? - Stack Overflow
I was not able to do so as I saw ... of using git clone and extract is locally to make the code work. ... Save this answer. ... Show activity on this post. You can do explorer.exe . in your terminal to see the absolute path of the folder you are currently in. It should be something like C:\. If you want to clone the repository elsewhere, ... More on stackoverflow.com
🌐 stackoverflow.com
How to "git clone " in Visual studio code - Stack Overflow
The "ssh -T git@github.com" also said I've successfully authenticated. 2022-07-22T06:00:28.75Z+00:00 ... What do you mean by the first sentence? The windows user account? Yes, this is my only account on my computer 2022-07-22T06:17:02.913Z+00:00 ... @Ray You need to clone the repository in a new ... More on stackoverflow.com
🌐 stackoverflow.com
github - How do I connect to my existing Git repository using Visual Studio Code? - Stack Overflow
Type “git clone” and paste the link in addition i.e “git clone https://github.com/...” · This will open the repository in your Vs Code Editor. ... This will clone the repository to whatever directory your terminal is currently open at. I am not sure that just randomly filling up your ... More on stackoverflow.com
🌐 stackoverflow.com
github - How do I clone a private git repo with ssh in vscode? - Stack Overflow
I'm using mac and I was wondering how can I clone a private github repo with ssh using vscode? I looked at code.visualstudio.com/docs/editor/versioncontrol but I couldn't find anything about clonin... More on stackoverflow.com
🌐 stackoverflow.com
Top answer
1 of 2
1

You can do explorer.exe . in your terminal to see the absolute path of the folder you are currently in. It should be something like C:\<some more stuff here>.

If you want to clone the repository elsewhere, then make sure Powershell is open in your Terminal, cd into the folder you want it to be in and git clone it there. As an example:

cd C:\Users\<your windows username>\Documents\;
git clone https://github.com/Azure-Samples/cognitive-services-speech-sdk.git;

If the first line doesn't work then that means you're in a linux terminal for which you can do:

cd /C/Users/<your windows username>/Documents;
git clone https://github.com/Azure-Samples/cognitive-services-speech-sdk.git;
2 of 2
1

When cloning a repository with the command palette, VS Code clones the repo in the path specified in the setting git.defaultCloneDirectory (/home/vscode/ might be proposed because set in this config variable). If git.defaultCloneDirectory is not set, VS Code clones the repository in the user's folder. On Windows, this corresponds to C:\Users\<Your-User>\.

If you want to specify a path for git.defaultCloneDirectory, just go to File > Preferences > Settings and then, either search for git.defaultCloneDirectory, or browse to Extension > Git > Default Clone Directory.

As a side note, if you clone a repository from VS Code bash without supplying a destination directory, the repo is always cloned in the user's folder, even if git.defaultCloneDirectory is set. git.defaultCloneDirectory is used only with the command palette.

🌐
Microsoft Learn
learn.microsoft.com › en-us › azure › developer › javascript › how-to › with-visual-studio-code › clone-github-repository
GitHub Repositories in Visual Studio Code for JavaScript - JavaScript on Azure | Microsoft Learn
Open the command palette with the key combination of Ctrl + Shift + P. At the command palette prompt, enter gitcl, select the Git: Clone command, then select Clone from GitHub and press Enter.
🌐
Visual Studio Code
code.visualstudio.com › docs › sourcecontrol › github
Work with GitHub in VS Code
October 7, 2026 - You can search for and clone a repository from GitHub using the Git: Clone command in the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)) or by using the Clone Repository button in the Source Control view (available when you have no ...
Find elsewhere
🌐
Reddit
reddit.com › r/vscode › [deleted by user]
[deleted by user] : r/vscode
September 4, 2024 - It's not supposed to be there: https://learn.microsoft.com/en-us/azure/developer/javascript/how-to/with-visual-studio-code/clone-github-repository
🌐
JC Chouinard
jcchouinard.com › accueil › how to clone a github repository with vs code (example)
How to Clone a Github Repository with VS Code (Example) - JC Chouinard
November 17, 2023 - This will replicate what you would do from the command line. Type Git: Clone. ... Add the URL that you copied earlier. ... Select the repository location where you want your file to be cloned (folder on your desktop).
🌐
Atlassian Support
support.atlassian.com › atlassian support › bitbucket › resources › set up and work on repositories in bitbucket cloud › work on a repository
Clone a Git repository | Bitbucket Cloud | Atlassian Support
March 22, 2021 - A. Branches list: Lists your Git branches. B. Files list: Includes all the files in your repository. C. Action buttons: Allows you to interact with the repository. D. Commits list: Includes a list of commits to the repository and details of each commit. E. Selected file: Shows a diff of the selected file. You can also use Visual Studio (VS) Code to clone your repository.
🌐
C# Corner
c-sharpcorner.com › home › technologies › devops › learn git clone, commit, sync and push changes using visual studio code
Learn Git Clone, Commit, Sync And Push Changes Using Visual Studio Code
October 15, 2022 - Before doing commit or push, We need to do clone the repo. For this go to GitHub repo and copy that repo URL as shown below. Then go back to your VS code and in the section of Source Control and click on Clone Repository as shown below.
🌐
Medium
medium.com › @melvingrooms › using-ssh-to-clone-a-private-hit-repository-9fbe79a589cd
Using ssh to clone a Private Git repository with VsCode and Git Bash | by Melvingrooms | Medium
August 11, 2023 - Give the key a name, in the box below key paste in the public key you copied from the step above. click add ssh key. ... Go to the repo you wish to clone and select code, copy the ssh link and return to the terminal in vscode.
🌐
ComputingForGeeks
computingforgeeks.com › home › cloning git repository from github in visual studio code
Cloning git repository from GitHub in Visual Studio Code
March 16, 2026 - Once VS Code is launched, you may access the command palette by pressing Ctlr+Shift+P. Then type gitcl there, Git: Clone will appear in the search results; choose it. Next, you will be prompted to provide the repository URL.
🌐
GitHub
docs.github.com › en › repositories › creating-and-managing-repositories › cloning-a-repository
Cloning a repository - GitHub Docs
To clone the repository using an ... Desktop, click Set up in Desktop and follow the prompts to complete the clone. Open TerminalTerminalGit Bash....
🌐
Medium
florapetersen.medium.com › creating-and-cloning-a-new-github-repo-with-vscode-f3578e29eb59
Creating and cloning a new Github repo with VSCode | by flora marina petersen | Medium
July 18, 2021 - Choose the clone repository option and put in your repository’s URL. This URL will be found on your repository’s page on Github. Hit the green “Code” button and simply copy the URL. After pasting that URL into VSCode, it will open up your project. You’ll want to make an initial commit. In the VSCode terminal, type the following:
Top answer
1 of 4
9

I just went through this today. I'm assuming you already have Git for Windows installed and have generated the ssh keys located in your user's ".ssh" folder. After that, you must go to the settings in your GitHub account online and look for the "SSH and GPG Keys" option in the menu on the left:

This is where you have to enter your public key by opening the "id_rsa.pub" file and then copying its contents into your GitHub account by clicking "New SSH key":

Then you can just use vscode like you would with a regular HTTP connection. Just Crtl+Shift+P to open vscode's Command Pallet, select git: clone, paste the SSH address of GitHub repo you want. In order to get the SSH address when you click the green "Clone or Download" button on a GitHub repo you must also click "Clone with SSH" in the box that pops up so you copy the SSH address instead of using the HTTPS link.

The only hangup you may have is, the first time you try ssh in vscode it will say, "host cannot be identified" The way to fix this is to simply do a git clone from a git bash command line outside of vscode so you can type "yes" to when it asks you if it's ok to add GitHub's SSH key fingerprint.

ROB@WINDOW10 MINGW64 ~/Documents
$ git clone git@github.com:Rob4226/example.git
Cloning into 'Example Repo'...
The authenticity of host 'github.com (140.82.114.3)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no/[fingerprint])? **yes**
Warning: Permanently added 'github.com,140.82.114.3' (RSA) to the list of known hosts.

For whatever reason the vscode git source control UI doesn't show this message for you to respond so it just throws an error. But after you say "yes" the first time in a git bash command line, ssh will work in vscode from now on without issue. It works great and is so much faster! I never use HTTPS anymore from vscode.

Or, you can manually add GitHub's SSH key fingerprints to your "known_hosts" file in the .ssh folder. They can be found here: https://help.github.com/en/github/authenticating-to-github/githubs-ssh-key-fingerprints

GitHub's SSH key fingerprints
Public key fingerprints can be used to validate a connection to a remote server.

These are GitHub's public key fingerprints (in hexadecimal format):

16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48 (RSA)
ad:1c:08:a4:40:e3:6f:9c:f5:66:26:5d:4b:33:5d:8c (DSA)
These are the SHA256 hashes shown in OpenSSH 6.8 and newer (in base64 format):

SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8 (RSA)
SHA256:br9IjFspm1vxR3iA35FWE+4VTyz1hYVLIE2t1/CeyWQ (DSA)
2 of 4
2

This is being studiedfor VSCode 1.67 (Apr. 2022) with issue 145850:
"Support cloning via SSH by default when picking a repository using the GitHub extension"

It is already possible today, just paste the SSH URL into the Clone input:

With that being said, there's the feature from the GitHub extension which lets you clone repositories without pasting their URL. That's what you're addressing in #146124. By default, the feature uses what GitHub defines to be the clone_url, which happens to always be HTTPS. We also happen to have automatic authentication against GitHub, making the clone via HTTPS really compelling, since the user never has to worry about auth.

So with PR 146124, this should be supported: you will have with VSCode 1.67 a new setting which can set the default URL schemes to use:

config.gitProtocol": 

"Controls which protocol is used to clone a GitHub repository",

🌐
Substack
jaredheinrichs.substack.com › jared’s technology substack › how to - clone a github repo in vscode
How To - Clone A GitHub Repo In VSCode - by Jared Heinrichs
July 17, 2025 - The first step is to locate the Repository you want to clone. Let’s go and use my public GitHub repo for HomeServarr. ... On the page, click on the big “Green” code button and copy the URL.
🌐
Digitalthoughtdisruption
digitalthoughtdisruption.com › home › blog › clone repository & push changes using visual studio code
Clone Repository & Push Changes using Visual Studio Code - Digital Thought Disruption
August 21, 2026 - Method 2. Git Bash. Both are effective and I know people who use one over the other all the time. In this article I will walk through cloning your repo in GitHub locally via HTTPS, clone the repo, and then push changes to your GitHub repo via Visual Studio Code.