Visual Studio: Change default path for repositories for GIT plugin


I want to clone a GitHub repository from Visual Studio, and the default path is C:\Users\[User]\Sources\Repos\[NameOfProject].


How do I change it? Every time I create or clone a repo, the path remains the same.


In Visual Studio 2015 / 2017 / 2019:

  1. Go to the menu bar, click View and then select Team Explorer
  2. Click the Home icon button in Team Explorer
  3. Click on Settings
  4. Click on Global Settings under Git
    (Note: may not appear if you have no cloned git repos)
  5. Alter the path for the Default location.
  6. Click OK/Update

Note: the location is case-sensitive, and it will not warn you if that exact location is not found

Leave a Reply