Search code examples
gitvisual-studioazure-devopstfsrepository

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...


Solution

  • 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