git remote add
Example:
SSH
git remote add production <user>@<host>:/path/to/git/folder
Go to folder
Type
git init --bare
Add to hooks/post-receive
#!/bin/sh
GIT_WORK_TREE=/path/to/git/folder git checkout -f
# Using PHP Composer?
composer install
# Worried about permissions?
chown <user>:<group> /path/to/git/folder -R
# Do what it takes to automate push in this file or in another hooks/ script