We can just create post-receive
hooks to refresh
after every push.
To summarize:
- Set git to update repositoy everytime you push.
git config receive.denyCurrentBranch updateInstead
- Create a hooks to refresh project.
echo '/usr/bin/refresh' > .git/hooks/post-receive
- Make it executable.
chmod +x .git/hooks/post-receive