In this post, we will clone a repository in the VSCode editor. With this demo, you can clone any repository from any Source Control application you have access to.
In this demo, we will use the GitHub repository. You can pick up any other repository as well say from Azure DevOps, Bitbucket, etc.
Launch Visual Studio Code Editor and click
Shift+Cntrl+P to open the palette and run a
Git: Clone command with your git URL.
If your URL is from GitHub, you can select that else, you can also select
Clone from URL.
Select the repository location accordingly where you want to keep the cloned repository on your local system.
Once the cloning is done. Click on Open.
That’s it. You have successfully cloned a remote repo to your local system. Start developing and push your changes back to the remote repo or create a connection to a new remote repo.