Multiple Visual studio 2019 projects (one solution) in gitlab

aravind guntha 1 Reputation point
2022-01-31T14:17:37.133+00:00

I am bit new to Git/GitLab. We are moving from Visual Source safe(VSS) to GitLab. We have a Visual studio solutions with multiple projects(20 to 25). It was easy to create repository structure in VSS as individual projects.

How does it work with Git/GitLab. Can I create individual repositories in Git/GitLab and then pull them to make a solution. How do Commit, Push work?

I tested with 1 single solution containing 2 projects, but since the projects are in different repositories, I have to toggle the main branch for each commit for respective projects.

How can Git/GitLab support one solution with multiple projects where each project having separate repository.

Thank you for your help
Babu

Community Center Not monitored
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Karen Payne MVP 35,586 Reputation points Volunteer Moderator
    2022-01-31T14:35:43.713+00:00

    Don't know if it's possible with GitLab but with GitHub look at submodules.

    Working with submodules is not simple, you need to completely understand them and how to use them in Visual Studio. More likely using git command line is easier in the long run than with tools in Visual Studio.

    0 comments No comments

  2. aravind guntha 1 Reputation point
    2022-02-01T15:41:46.66+00:00

    karenpayneoregon , Thank you for the reply.

    I am specifically looking for GitLab or in general in Git, how one can work with multiple repositories in Visual studio without using submodules.
    The concept of solution->project seems difficult with Git or I am not getting it correct.

    Thanks
    Babu

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.