I want to
git push server master
And then have it update the files on the webserver for rapid deployment. But the files on the server don't get updated. There isn't a new branch oder anything. How do I get the files on the working branch once they have arrived?
I tried putting
cd ..
env -i git reset --hard
in the post-receive hook but it doesn't seem to do anything. (Got that idea from here: http://philsturgeon.co.uk/news/2010/02/Deploying-websites-with-Git)
Help appreciated.