How to add Git-submodules in your TYPO3 Project?

Did you ever faced situation where your TYPO3 project needs multiple TYPO3 repository? For example, You have main repository of TYPO3 installation and sepearate number of Git-repositories for your custom TYPO3 extensions? In that situation, to well maintain your TYPO3 project, we highly recommend to use Git-submodule concept as below.

How to add Git-submodules in your TYPO3 Project?

Did you ever faced situation where your TYPO3 project needs multiple TYPO3 repository? For example, You have main repository of TYPO3 installation and sepearate number of Git-repositories for your custom TYPO3 extensions? In that situation, to well maintain your TYPO3 project, we highly recommend to use Git-submodule concept as below.

Add Git Submodule

Step 1. Clone the main repository.

Step 2. Use the command git submodule add -f and provide the Sub repository and Path folder where you want to clone

Step 3. You can check .gitmodules created at the root of your project

Step 4. Now push the .gitmodules main repository.

// Add submodule
git submodule add -f git@gitlab.com:t3terminal/themes/products/ns_theme_[Your theme].git public/typo3conf/ext/ns_theme_[Your theme]/

Git Submodule Recursive

// Recursive Git submodule update
git submodule update --init --recursive

// Synchronizes submodules' remote URL configuration setting to the value specified in .gitmodules
git submodule sync

Looking for the Right TYPO3 Products for Your Project?

Explore professional products from T3Planet Shop, including TYPO3 templates, TYPO3 extensions, and AI-powered extensions for modern TYPO3 websites.

  • TYPO3 Templates for flexible and scalable websites
  • TYPO3 Extensions for added features and functionality
  • AI Extensions for content, search, accessibility, localization, and automation
  • Free & Premium products for different TYPO3 project needs
Explore T3Planet Shop
T3Planet Shop TYPO3 Products

Post a Comment

×