Visual Studio: Change default path for repositories for GIT plugin

后端 未结 3 1071
[愿得一人]
[愿得一人] 2020-12-23 13:08

I want to clone a GitHub repository from Visual Studio and the default path is C:\\Users\\[User]\\Sources\\Repos\\[NameOfProject].

相关标签:
3条回答
  • 2020-12-23 13:24

    In Visual Studio 2015 / 2017 / 2019:

    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
    0 讨论(0)
  • 2020-12-23 13:28

    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.

    0 讨论(0)
  • 2020-12-23 13:41

    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

    0 讨论(0)
提交回复
热议问题