我有一个包含多个子模块的git代码库。git clone URL # without --recursive!因此,我只有一个主存储库,在master中签出现在,我在其分支中签出了一个主存储库
git submodule update -checkout submodules because now they point to their supposed branch hash a
在它的预提交钩子中,git似乎验证了头的存在。如果没有,则默认为要比较索引的空树的特殊散列。if git rev-parse --verify HEAD >/dev/null 2>&1 against=HEAD # Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8