Visual Studio:更改GIT插件的存储库默认路径
问题描述:
我想从Git-Hub和Visual Studio中克隆一个存储库,并且建议的默认路径是C:\ Users [User] \Sources\Repos [NameOfProject]
I'm want to clone a repository from Git-Hub and Visual Studio and the default path that is suggested is C:\Users[User]\Sources\Repos[NameOfProject]
我们如何改变它?每当我创建或克隆repo时,路径都保持不变。
How do we change it? Everytime I create or clone a repo, the path remains the same.
答
在Visual Studio 2015/2017中: / strong>
$ b
In Visual Studio 2015 / 2017:
- 点击设置 点击设置
- 单击Git
下的全局设置(注意:如果您没有克隆的git仓库,则可能不会出现) - 更改默认存储库位置
- 点击更新
- Click The Home 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 Repository Location
- Click Update