After a download of a repository with many dependencies to install locally I decide to automatize also this step.
After that script, I created my script to be executed after the clone of a repo and now it is available on https://github.com/Mte90/Script/tree/master/git-templates/hooks.
To add a git template globally you need to do a command:
1 |
git config --global alias.clone 'clone --template=[full path]/git-templates' |
In this way you add a folder for git where search the hooks, very simple.
Actually there is only a script to be executed after the clone: https://github.com/Mte90/Script/blob/master/git-templates/hooks/post-checkout
The code search for composer, npm, bower, pip and vagrant and in case download all the dependencies.