| ms.date | 10/19/2022 |
|---|---|
| ms.topic | include |
| msservice | azure-devops-repos |
| ms.subservice | azure-devops-repos-git |
To add an upstream alias in Visual Studio, follow these steps:
-
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":::
-
In the Add Remote dialog, add a new remote called
upstreamand 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":::