Visual Studio: Change default path for repositories for GIT plugin
git, visual-studio
Solution
In Visual Studio 2015 / 2017 / 2019:
- Go to the menu bar, click View and then select Team Explorer
- Click the Home icon button in Team Explorer
- Click on Settings
- Click on Global Settings under Git (Note: may not appear if you have no cloned git repos)
- Alter the path for the Default location.
- Click OK/Update
Note: the location is case-sensitive, and it will not warn you if that exact location is not found
Problem
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.