How to deal with Git Submodules in Visual Studio solutions with different layout?

后端 未结 5 971
独厮守ぢ
独厮守ぢ 2021-02-15 07:09

We develop with Visual Studio 2010 (in C#) and migrated a while ago from SVN to GIT. Now we try to split up our repository (which is quite big - ~30.000 files) to many git repos

5条回答
  •  失恋的感觉
    2021-02-15 07:47

    I have a similar problem using VS 2013.

    I want to use git-svn instead of SVN directly. SVN has a gigantic set of directories. I could not create a single git-repository that would contain all of our trunk folder. Git-always exited with an error and the repository was corrupted. I worked around the problem by doing as follows:

    1. Using git-svn, I cloned the subset of folders off SVN/trunk that I needed by creating one git-repository per folder.
    2. Created a local parent git repository that contains all my git-svn-cloned folders.
    3. Each git-repository was added as a sub-module to the parent git-repository.

    The problem with Visual Studio is that it does not recognize the multiple projects outside the main project where I opened the solution. This solution is in a folder that contains the only files recognized by Visual Studio as being under git-source control.

    I tried setting the git-preferences to use the upper level parent directory as the location of the git-repostitory without noticing any difference.

提交回复
热议问题