Visual Studio:更改GIT插件的存储库默认路径 [英] Visual Studio: Change default path for repositories for GIT plugin
本文介绍了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
这篇关于Visual Studio:更改GIT插件的存储库默认路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文