Search code examples
githubvisual-studio-2019

How to Change GitHub Repository for a Project in Visual Studio 2019?


I'm working on a Windows Form application using Visual Studio 2019, and I currently have the project connected to a GitHub repository. However, I no longer need the current repository and want to switch to a different one.

I've searched online but couldn't find clear instructions on how to do this. Can someone please provide guidance on how to change the GitHub repository associated with my project in Visual Studio 2019?


Solution

  • From this thread, you can control what the remote refers to with Manage Remotes

    remote

    And:

    remote url

    You can change the repository there.