1

I have a multi module project with 4 modules.

Currently my complete project is under VCS with all its modules, but now I want to have one of those modules at another repository.

I know it is possible to attach each module to it´s own repository, but

is it also possible to keep my project in one repository, exclude the one module from this repo and have it in its own repository?

The reason I want to do this is I have several other files in my project I need to have under version control, so it´s not enough for my case to only version my modules.

Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136

1 Answers1

0

If you declare your modules as git submodules, you will be able to:

  • keep only one parent repo (which will reference your git submodules)
  • work only on one of those modules (since a git submodule is a git repo in itself)

You can create a submodule from an existing subfolder, with its history.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250