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:
Note: the location is case-sensitive, and it will not warn you if that exact location is not found
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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.