Visual Studio:更改GIT插件的存储库默认路径

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:


  1. 点击设置
  2. 点击设置
  3. 单击Git

    下的全局设置(注意:如果您没有克隆的git仓库,则可能不会出现)

  4. 更改默认存储库位置

  5. 点击更新

  1. Click The Home Button in Team Explorer
  2. Click on Settings
  3. Click on Global Settings under Git
    (Note: may not appear if you have no cloned git repos)
  4. Alter the Path for the Default Repository Location
  5. Click Update