Skip to content

Instantly share code, notes, and snippets.

@eacousineau
Created March 26, 2013 21:35
Show Gist options
  • Save eacousineau/5249526 to your computer and use it in GitHub Desktop.
Save eacousineau/5249526 to your computer and use it in GitHub Desktop.
Git Submodule - Test Setup
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