Wir haben git Submodule untersucht und wir fragen uns, welchen Vorteil (wenn überhaupt) ein Repository hat, das Submodule verwendet, die ein Repository in einem anderen Repository mit einer .gitignore Datei haben.Was ist der Vorteil der Verwendung von Git Submodulen gegenüber einem Repo in einem anderen Repo mit einem Gitignore?
Beispiel ohne Submodule:
mkdir a
cd a
git init
touch test1.txt
echo "b" > .gitignore
git add .
git commit -m "Adding test1.txt and gitignore"
mkdir b
cd b
git init
touch test2.txt
git add .
git commit -m "Adding test2.txt"
git log
cd ..
git log
Dies sollte wahrscheinlich zu [SoftwareEngineering.SE] (https://softwareengineering.stackexchange.com/) migriert werden. –