Skip to content

Instantly share code, notes, and snippets.

#git version 1.8.4.msysgit.0
git clone --recursive https://github.com/lbf1/repo1.git
cd repo1
cp hooks/pre-commit .git/hooks/
cd sub
git reset --hard 062bca0f29
cd ..
git reset --hard 84edb8e21
echo change > README
git commit -am "change"
Cloning into 'repo1'...
remote: Counting objects: 39, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 39 (delta 13), reused 38 (delta 12)
Unpacking objects: 100% (39/39), done.
Checking connectivity... done
Submodule 'sub' (https://github.com/lbf1/sub) registered for path 'sub'
Cloning into 'sub'...
remote: Counting objects: 33, done.
remote: Compressing objects: 100% (11/11), done.