Is anyone experienced with sub projects?

Reflecting back,

Reflecting Back.jpg

I realize how foolish I was expecting someone to take all my (crappy) code when they might want one project.

Now my plan is to start moving projects into their own repo as I have time, but there are currently over 20 solutions hence the name Shared Repo, and this was only easier for me being all in one folder, and still is.

My small understanding of Git is that it tracks all the changes below my root folder of my repo.

So now for my question:

Project Structure.png

If I want add the folder DBCompare to its own repo, do I have to move the project out of its current location?

I know users could manually clone each project if they want more than just the NuGet package references, but are there any fancy gadgets that provide a way to select optoinal projects to clone with the one, for example 'Comes with sample project xyz you might also like?

Thanks, if I explained this right, and I know I asked two seperate questions.

And now I will make a third bonus question, but is there such a thing as Git Consultant for hire? Paying someone that already knows how to do something is almost always better than trying to self teach your self a new skill in a short period time. At best it will be half as good as an experts in twice the time.

> If I want add the folder DBCompare to its own repo, do I have to move the project out of its current location?

Not necessarily. There are a few different strategies for managing subprojects in git. The two most common ones are submodules and subtrees. Both of them add additional overhead to merge in new changes from the subproject to the superproject. But creating these relationships often assumes that the subproject starts out separate from the superproject and gets included in. So in order to move from where you are now, you may have to extract the subproject into its own repo, remove it from the superproject and then include it back in using your strategy of choice.

> is there such a thing as Git Consultant for hire?

There may be, yes, though I don’t know of one specifically.

I hope that helps!