- make a
project/directory andproject.git/directory cd project.git && git init --barecd project.git/hooks && touch post-receive- copy paste post-receive script
- make executable
chmod +x post-receive
git remote add production [email protected]:/var/www/project.git
git push production