How to have individual git repositories for each project in a visual studio 2019 solution

Darryl Hoar 181 Reputation points
2024-08-13T14:19:48.88+00:00

I have a solution with 4 projects in it. I want to be able to have a git repository for each of the individual projects in the solution. How do I accomplish this?

thanks.

Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2024-08-14T04:11:20.48+00:00

    Hi @Darryl Hoar

    Welcome to Microsoft Q&A! 

    You can refer to the document to create a Git repository from the VS.

    For each project, navigate to the project directory under Initialize a local Git Repository to initialize a new Git repository in that directory. 

    Besides, we've added multi-repository support to Visual Studio 2022, starting with version 17.4, it allows multiple Git repositories within a single solution to be active. You can see: Work with multiple repos

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     

    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.