Home > other >  How to clone repository from git to separate directories?
How to clone repository from git to separate directories?

Time:12-29

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

CodePudding user response:

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.

CodePudding user response:

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

  • Related