author | ms.author | ms.date | ms.topic | ms.service | ms.subservice |
---|---|---|---|---|---|
vijayma |
vijayma |
10/19/2022 |
include |
azure-devops-repos |
azure-devops-repos-git |
-
From the Git menu on the menu bar, choose Clone Repository to open the Clone a repository window.
:::image type="content" source="../media/clone/visual-studio-2019/git-experience/clone-repo.png" border="true" alt-text="Screenshot of the 'Clone Repository' option in the Git menu in Visual Studio." lightbox="../media/clone/visual-studio-2019/git-experience/clone-repo-lrg.png":::
-
In the Clone a repository window, enter the clone URL of the remote Git repo that you want to clone, verify the local folder path where you want to create the local clone, and then choose Clone.
:::image type="content" source="../media/clone/visual-studio-2019/git-experience/specify-repo.png" border="true" alt-text="Screenshot of the 'Clone a repository' window in Visual Studio." lightbox="../media/clone/visual-studio-2019/git-experience/specify-repo-lrg.png":::
After you've cloned a remote Git repo, Visual Studio detects the local clone and adds it to the list of Local Repositories in the Git menu.
:::image type="content" source="../media/clone/visual-studio-2019/common/local-repositories.png" border="true" alt-text="Screenshot of the 'Local Repositories' option from the Git menu in Visual Studio." lightbox="../media/clone/visual-studio-2019/common/local-repositories-lrg.png":::