In Visual Studio, click Tools > Options. Expand Projects and Solutions and click Locations. The Projects location field defines the default location for storing new projects. You can change this path if you are using a different working folder.
To configure Git settings in Visual Studio, choose Settings from the top-level Git menu. Choose Git Global Settings or Git Repository Settings to view and configure global-level or repository-level settings. You can configure several common Git settings, as described in the following sections of this article.
Visual Studio GitFrom the Git menu, choose Git > Settings and then select the Git Global Settings view. That view contains the name and email settings for the current user. Or, choose Git Repository Settings > General to edit the name and email settings for the current Visual Studio project repo.
In the Visual Studio IDE, select the Git menu, select Local Repositories, and then select Open Local Repository.
In Visual Studio 2015 / 2017 / 2019:
Note: the location is case-sensitive, and it will not warn you if that exact location is not found
In addition to the Team Explorer's Git settings...
...you'll likely want to change the default project location:
Tools | Options | Projects and Solutions | Locations
For VS2013 v4+ and VS2015
Click on "Settings" (from either the project Home menu or from the top dropdown menu), then select "Git Settings." You will see a Global Setting of "Default Repository Location" (the one you want). Change it and click Update.
Easiest way to access this in 2019:
Ctrl+Q
to get to quick launch (or click on it at the top of the window)
Type git settings
Change Default Location here
I am able to access Git Global Settings from Visual Studio "Tools..." menu rather than from Team Explorer:
[VS2019] => Tools | Options... [Source Control] > Git Global Settings
(I have not tested it with earlier versions of Visual Studio.)
This works even when you have not opened and/or cloned a Git repos.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With