Some actions automatically run by git on commit or push.
The script given in subdirectories is to add in the folder .git/hooks
of your repository.
More information here.
NOTE : the script my need some rights to be executed, you can change it with
chmod 755 .git/hook/<file>
- publish-LaTeX : send on a server via
scp
pdf files (compiled by LaTeX or not) in set directories, only if the files are changed.