Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.93 KB

clone-github-repo.md

File metadata and controls

24 lines (16 loc) · 1.93 KB
author ms.author ms.date ms.topic ms.service ms.subservice
vijayma
vijayma
10/19/2022
include
azure-devops-repos
azure-devops-repos-git
  1. 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":::

  2. In the Clone a repository window, select GitHub under Browse a repository to open the Open from GitHub window.

    :::image type="content" source="../media/clone/visual-studio-2019/git-experience/clone-github-repo.png" border="true" alt-text="Screenshot of the GitHub option in the 'Clone Repository' window in Visual Studio." lightbox="../media/clone/visual-studio-2019/git-experience/clone-github-repo-lrg.png":::

  3. In the Open from GitHub window, sign in to GitHub and choose the remote repo you want to clone. You can use the search box to filter the list of remote repos. Verify the local folder path where you want the local clone to be created, and then choose Clone.

    :::image type="content" source="../media/clone/visual-studio-2019/git-experience/open-from-github.png" border="true" alt-text="Screenshot of the 'Open from GitHub' window in Visual Studio." lightbox="../media/clone/visual-studio-2019/git-experience/open-from-github-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 in the Git menu of Visual Studio." lightbox="../media/clone/visual-studio-2019/common/local-repositories-lrg.png":::