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 File → Open Folder)

Answer from Shahdat 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.
🌐
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.
Discussions

github - How do I connect to my existing Git repository using Visual Studio Code? - Stack Overflow
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 ... Save this answer. ... Show activity on this post. ... Write the Git clone ... More on stackoverflow.com
🌐 stackoverflow.com
How to "git clone " in Visual studio code - Stack Overflow
But I failed when I tried to "git clone" in Visual Studio Code, like what the video does More on stackoverflow.com
🌐 stackoverflow.com
git - Clone GitHub repository in VSCode - Stack Overflow
I'm trying to clone a GitHub repository into the newest release of VSCode (1.3.0). Can this be done natively or do I need to add an extension or additional binary? I've also searched for a blog ar... More on stackoverflow.com
🌐 stackoverflow.com
Where is VS Code cloning a git repository? - Stack Overflow
I ran the git:clone command in VS Code command palette to clone a repository from GitHub. Where is the repo getting cloned to? VS Code is running locally on my laptop. I am on a Windows machine. Wh... More on stackoverflow.com
🌐 stackoverflow.com
🌐
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 ...
🌐
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.
🌐
Medium
medium.com › @sarahlkhan › how-to-clone-git-repository-in-microsoft-vs-code-c113bcd499ab
How to Clone Git Repository in Microsoft VS Code | by Sarah Khan | Medium
June 10, 2024 - Open the project on GitHub · Select the green button labeled Code · Next to the url that shows up select the symbol Copy url to clipboard · Open Microsoft Visual Studio Code · Find and select Clone git repository under Start ·
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 - To clone your repository, you need to copy the web URL linked to your repository on Github and clone the repo. Go to your Github Repository, Click on the <> Code button, and Copy the URL · Go in Visual Studio Code.
🌐
Microsoft Learn
learn.microsoft.com › en-us › visualstudio › version-control › git-clone-repository
Clone a Git repository in Visual Studio
If you have more than one GitHub account, you can sign in with any of your accounts. If you're already signed in with one account, you can use the account dropdown to switch to a different account. After you sign in, Visual Studio returns to the Clone a repository dialog, where the Open from GitHub window lists all the repositories that you have access to.
🌐
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.
🌐
H2S Media
how2shout.com › home › developer › how to clone git repository from github in visual studio code?
How to Clone Git repository from GitHub in Visual Studio Code? - H2S Media
October 2, 2023 - After that, you will be asked to provide the repository URL, as we want to clone the repo from GitHub instead of providing the URL, just click on the “Clone from GitHub” option.
🌐
Straygoat
straygoat.co.uk › freelance technical writer › blog › set up git and github to work with visual studio code
Set up Git and GitHub to work with Visual Studio Code - Straygoat
July 27, 2025 - If you have been signed in to VSC ... information about signing in and out in the official docs. Either select Clone Git Repository on the Welcome page or:...
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.

🌐
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.
🌐
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.
🌐
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 - This article is intended to show how to clone a repository locally from your remote server and then push local updates to your central repo
🌐
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 - 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.