Created
March 26, 2013 21:35
-
-
Save eacousineau/5249526 to your computer and use it in GitHub Desktop.
Git Submodule - Test Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for dir in a b c d; do | |
git init $dir | |
pushd $dir | |
touch test | |
echo $dir > bob | |
git add -A | |
git commit -m "Init" | |
popd | |
done | |
pushd b; | |
git submodule add ../c | |
git commit -m "Subbed" | |
popd | |
pushd a | |
git submodule add ../b | |
git submodule add ../d | |
git submodule update --init --recursive | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment