By default, Team Explorer sets your default location for your Git repos at \Users\<username>\Source\Repos, as seen in yesterday’s example
If you want to change this location, perhaps to remove the Source directory from the path to save you a few extra clicks, you can go to Team Explorer – Settings
and then click Git – Global Settings
From there you can change the path.
- This change only affects new cloned projects moving forward. Your previously cloned repos will remain in their original directory.
- GitHub Desktop uses a different repo (\Users\<username>\Documents\GitHub) than Visual Studio. This change in Team Explorer doesn’t change the default location in GitHub Desktop. If you want both GitHub Desktop and Team Explorer to use same location, you’ll need to change the default location in GitHub Desktop as well.