I. Install and authorize Git X-Modules

  1. Go to https://gitmodules.com and click on “Get Started”. Then click “Connect with GitHub”.

    image


  2. You will be redirected to the GitHub authorization page. Click “Authorize Git X-Modules”

  3. You will be redirected to the main page of the Git X-Modules Cloud service. But your repositories are not there yet. Click “Install on GitHub”.
    image

  4. In the GitHub installation screen, click “Install and authorize”. You may choose, which repositories the app will be installed to. You will be redirected back to Git X-Modules after that.

    image


If you don’t see your repositories in Git X-Modules after installation - try reloading the page.

II. Add a module

  1. Select the parent repository (the one that you would like to add modules to) on the main page of the Git X-Modules app. Click to enter the module setup.
    image


To create a monorepo, first create an empty repository on GitHub, and then select it as a parent. The repository should contain a default branch.


2. Select the branch to add a module to. Then click “Add module”

image


3. In the Repository Path field enter the name of the new module. That will also be the name of the directory in your parent repository that will be synchronized with the module repository.

4. In the Module Location field select the repository to be added as a module, and the branch is this repository.

image


5. Optional: Set up the Merge Strategy and Squash options. These settings specify, how the commit history from the module repository is represented in the parent repository. More about these settings

image


6. Optional: Specify the Root Path and the Exclude Paths to select, which parts of the module repository will be added to the parent repository.

image


  • If you want to add only a certain directory, specify it in the Root Path field.

  • If you want to exclude certain files or file types, specify them in the Exlcude Paths fiels. Use the .gitignore syntax.

7. Click “Apply Changes”
image



That is it! Your new module is created and synchronized. You may create several modules at once before applying changes. You may also change any settings at any time.

If anything goes wrong, or you need more information, or just would like to share some insight with us - please create a topic on our Support Forum. We would love to hear from you!

  • No labels