আমি আপনার সমস্যার জন্য আরও একটি সমাধান ( গিট-সাবমডিউলগুলির বিকল্প ) পরামর্শ দিতে পারি - গিল (গিট লিঙ্কস) সরঞ্জাম
এটি জটিল গিট সংগ্রহস্থলগুলির নির্ভরতাগুলি বর্ণনা ও পরিচালনা করতে দেয়।
এছাড়াও এটি গিট रिकर्सিভ সাবমডিউলগুলি নির্ভরতা সমস্যার সমাধান দেয় ।
আপনার নিম্নলিখিত প্রকল্প নির্ভরতা বিবেচনা করুন:
নমুনা গিট সংগ্রহস্থল নির্ভরতা গ্রাফ
তারপরে আপনি .gitlinks
সংগ্রহস্থল সম্পর্কিত বিবরণ দিয়ে ফাইলটি সংজ্ঞায়িত করতে পারেন :
# Projects
CppBenchmark CppBenchmark https://github.com/chronoxor/CppBenchmark.git master
CppCommon CppCommon https://github.com/chronoxor/CppCommon.git master
CppLogging CppLogging https://github.com/chronoxor/CppLogging.git master
# Modules
Catch2 modules/Catch2 https://github.com/catchorg/Catch2.git master
cpp-optparse modules/cpp-optparse https://github.com/weisslj/cpp-optparse.git master
fmt modules/fmt https://github.com/fmtlib/fmt.git master
HdrHistogram modules/HdrHistogram https://github.com/HdrHistogram/HdrHistogram_c.git master
zlib modules/zlib https://github.com/madler/zlib.git master
# Scripts
build scripts/build https://github.com/chronoxor/CppBuildScripts.git master
cmake scripts/cmake https://github.com/chronoxor/CppCMakeScripts.git master
প্রতিটি লাইন নিম্নলিখিত বিন্যাসে গিট লিঙ্ক বর্ণনা করে:
- সংগ্রহস্থলের অনন্য নাম
- সংগ্রহস্থলের সম্পর্কিত পাথ (.gitlinks ফাইলের পথ থেকে শুরু হয়েছে)
- গিট সংগ্রহস্থল যা চেকআউট করার জন্য গিট ক্লোন কমান্ড রেপোজিটরি শাখায় ব্যবহৃত হবে
- # দিয়ে শুরু করা খালি লাইন বা লাইনটি পার্স করা হয় না (মন্তব্য হিসাবে বিবেচিত)।
শেষ পর্যন্ত আপনাকে আপনার মূলের নমুনা সংগ্রহস্থলটি আপডেট করতে হবে:
# Clone and link all git links dependencies from .gitlinks file
gil clone
gil link
# The same result with a single command
gil update
ফলস্বরূপ আপনি সমস্ত প্রয়োজনীয় প্রকল্পগুলি ক্লোন করবেন এবং যথাযথভাবে একে অপরের সাথে লিঙ্ক করবেন।
শিশু লিঙ্কযুক্ত সংগ্রহস্থলের সমস্ত পরিবর্তনের সাথে আপনি যদি কিছু সংগ্রহস্থলের সমস্ত পরিবর্তন করতে চান তবে আপনি এটি একটি একক আদেশ দ্বারা করতে পারেন:
gil commit -a -m "Some big update"
টানুন, পুশ কমান্ডগুলি একইভাবে কাজ করে:
gil pull
gil push
গিল (গিট লিঙ্কস) সরঞ্জামটি নিম্নলিখিত কমান্ডগুলিকে সমর্থন করে:
usage: gil command arguments
Supported commands:
help - show this help
context - command will show the current git link context of the current directory
clone - clone all repositories that are missed in the current context
link - link all repositories that are missed in the current context
update - clone and link in a single operation
pull - pull all repositories in the current directory
push - push all repositories in the current directory
commit - commit all repositories in the current directory
গিট রিকার্সি সাবমডিউলগুলি নির্ভরতা সমস্যা সম্পর্কে আরও ।