Git submodules ஒரு Git repository-யை மற்றொரு Git repository-க்குள் subdirectory-யாக உட்பொதிக்க அனுமதிக்கிறது — பகிரப்பட்ட libraries அல்லது dependencies-ஐ தனிப்பட்ட repos-ஆக சேர்க்க பயனுள்ளதாக இருக்கிறது. அவை சக்திவாய்ந்தவையாக இருக்கிறது ஆனால் சிக்கலின் புகழ்வாய்ந்த அவை, எனவே அவற்றையும் மாற்றுத்திறனுகளையும் புரிந்துகொள்வது மதிப்பு வாய்ந்தது.
Submodules என்றால் என்ன
A SUBMODULE is a reference to ANOTHER Git repository at a SPECIFIC COMMIT, embedded in
your repo as a subdirectory:
→ the parent repo records WHICH repo and WHICH commit (a pinned reference, not a copy)
→ the submodule is its own repo with its own history
→ Used to include shared libraries/components that are themselves versioned repos.
git submodule add <url> path/to/lib
git --recurse-submodules <url>
git submodule update --init --recursive
git submodule update --remote
