I have a bare repo set up in my ubuntu server.
After I push to my bare git repo to the server:
$ git push origin master
I want the
I'd go with something like
#!/bin/sh cd /central/workfiles git pull exit
Save the above script as post-receive and place it in the hooks/ directory of your bare repo.
post-receive
hooks/
Bottom line don't forget to make it executable
chmod +x post-receive