Answer the question
In order to leave comments, you need to log in
Check which files are not in the git repository?
Greetings.
We have a GIT repository here /var/git_repository/site.git
A post-receive hook is configured so that after the commit, the code is copied to the working folder:
#!/bin/bash
read oldrev newrev refname
if [ refs/heads/master = $refname ]; then
git --work-tree=/var/www/site/ --git-dir=/var/git_repository/site.git/ checkout -f
chmod 775 -R /var/www/site
log=$(git log -n 1 --name-only --pretty=format:master)
fi
Answer the question
In order to leave comments, you need to log in
Decided like this:
Everything ingenious is simple.
PS As always, ask and the answer will come to mind.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question