简体   繁体   中英

Change Git repository location out of the root directory of Visual Studio 2015 solution

I have a Visual Studio solution in [ D:\\works\\CobraSin ], where Git puts his files as well.
But I need that these files were located in another directory [ C:\\MainDocs... ], where I have an automatic backup that manage this type of security service.

How can I set a new local repository to Git for this solution?

Is there a page on VS Tools\\Options... menu where we can attribute this?
What I need to command to achieve this change?

You could simply move your files from D:\\works\\CobraSin to your destination, and reload your project from there.

You can start, instead of copying/moving, by cloning your repo.

git clone D:\works\CobraSin C:\MainDocs\aNewFolder

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM