গিট সাবমডিউলগুলি আপনাকে একটি গিট রিপোজিটরিকে অন্যটির মধ্যে একটি সাবডিরেক্টরি হিসাবে এম্বেড করতে দেয় — শেয়ার করা লাইব্রেরি বা নির্ভরতাগুলি আলাদা রিপোজিটরি হিসাবে অন্তর্ভুক্ত করার জন্য উপযোগী। এগুলি শক্তিশালী তবে জটিলতার জন্য একটি খ্যাতি আছে, তাই সেগুলি এবং বিকল্পগুলি বোঝা মূল্যবান।
সাবমডিউলগুলি কী
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
