How to change the version of Visual Studio when opening on github

Found the answer by a different question: Workaround for "Visual Studio Web Request handler could not be found" when using github?

The solution is easy: just reassign the default handler for the git-client protocol. To do that, press the Windows-Key, enter "default apps" and select the settings page. Go down, select "Choose default apps by protocol" and look for "git-client". Click and select the Microsoft Visual Studio Web Protocol Handler Selector for VS2017.


In Windows 10:

  1. Click Windows Start Button
  2. Start Typing 'Default apps'
  3. Choose "Default apps'
  4. Select "Choose default apps by protocol"
  5. Find the protocol for the GIT_CLIENT, VSTFS and VSWEB protocols, and select the default application.

NOTE: In step #5, if you have both VS2017 and VS2019 installed, then you will see two identical items named "Microsoft Visual Studio Web Protocol Handler Selector". But they are different: the first is for VS2017, the second is for 2019.