In regard to this topic : Git website howto here follows a generic git hook :
Copy/paste the code below to your .git/hooks/post-receive file of your remote repository :
#!/bin/bash GIT_WORK_TREE=`dirname $(dirname $(dirname $(readlink -f $0)))` git checkout -f
Be aware not to forget to set this file executable
git config receive.denycurrentbranch ignore in your remote repository to allow updates to be sent from your local one.