简体   繁体   中英

How to clone repository from git to separate directories?

Good day!

I have a problem. There is a project in Azure DevOps where git repository is located. The repository contains 2 folders. When I worked in TFSVS, I could map server folders to local through workspaces and the repository is downloaded into distinct directories.

Is there a way to perform the same procedure using Git functionality in Visual Studio 2019? Or is there at least a way to do so anyway? I mean to clone the repository into distinct catalogues or move them after clone process, because it is necessary to have one folder in a specific directory (which is not empty) and the other folder with projects can be anywhere?

Example:
The repository:

[project]/folder1
[project]/folder2

And I have to clone as a following way:

K:/x/p/q/folder1
C:/x/p/q/folder2

Thank you in advance...

I'm not sure I already see the full picture, but it looks like what you really need is two repositories. Your projects seem independent, so make them independent. Split the git repository into two, so you can checkout each one to wherever you need it.

Well, I could solve it by myself. I created symbolic links in necessary folders to the folders in my repository and this helped.
I want also thank everyone who was trying to help me here.

The solution is suitable for everyone who migrates to git in Microsoft Dynamics 365 AX

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