Including submodules in git checkout to GIT_WORK_TREE in hook
问题 Is it possible to include submodules when using the following code in a post-update hook? GIT_WORK_TREE=/path/to/directory git checkout -f What other options would I have to distribute code, including submodules from a post-update hook? Thanks. 回答1: The question "Using git submodule update --init on a post hook" mentions the error message you could see if using this in your post-update hook: GIT_WORK_TREE=/path/to/directory git submodule update --init That would give a: remote: You need to