I have a website that is running on a Windows 2008 server. I want to know what is the best way to manage that site using git. Ideally I want an automated deployment, using a post-receive hook or similar.
I do have a Linux server that I typically use as my git origin server, so I can utilize that if it makes things easier. Typically my post-receive file there looks like this:
#!/bin/sh
GIT_WORK_TREE=/var/www/example.com git checkout -f
Obviously that won't work as-is on Windows without something else in place.
My Windows server supports FTP but I'd like to use something more secure if possible.