If you don’t know the repository URL, Visual Studio makes it easy to browse to and then clone your existing GitHub or Azure DevOps repository. If you know the URL of the repository that you would like to clone, you can paste the URL in the Repository location section and then choose the disk location you would like Visual Studio to clone to.
Visual Studio includes a straightforward clone experience. Or, you can link your local project with an existing empty remote repository on Azure DevOps or any other Git provider by using the Existing Remote option. You can choose to create a local-only Git repository by using the Local only option.
This also makes your code available to you no matter what computer you're using. Whether your repository is public or private, it's best to have a remote backup of your code stored securely on GitHub even if you are not working with a team.