Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 1.18 KB

git-config-remotes.md

File metadata and controls

18 lines (13 loc) · 1.18 KB
author ms.author ms.date ms.topic msservice ms.subservice
vijayma
vijayma
10/19/2022
include
azure-devops-repos
azure-devops-repos-git

To add an upstream alias in Visual Studio, follow these steps:

  1. Choose Tools > Options from the menu bar to open the Options window. Select Source Control > Git Repository Settings > Remotes, and then choose Add to open the Add Remote dialog.

    :::image type="content" source="../media/forks/visual-studio-2019/git-remote-settings.png" border="true" alt-text="Screenshot of the Add button in the Remotes pane of the Git Repository Settings submenu of the Source Control menu in Visual Studio." lightbox="../media/forks/visual-studio-2019/git-remote-settings-lrg.png":::

  2. In the Add Remote dialog, add a new remote called upstream and enter the Git clone URL of the repo you forked. Then, choose Save.

    :::image type="content" source="../media/forks/visual-studio-2019/git-add-remote-dialog.png" border="true" alt-text="Screenshot of the Add Remote dialog box in Visual Studio." lightbox="../media/forks/visual-studio-2019/git-add-remote-dialog-lrg.png":::