New answers tagged

-1

Serving your site from a git "working directory" is considered bad practice - see reasons here and here. The best way to do this is to set up a "bare" git repo on your server with a "post-receive" hook. This article is what I followed when I did this recently, the basic idea is: Create a "bare" repo with git init --bare Edit hooks/post-receive in your ...


2

Okay have managed to figure this one out. Turns out there is no native feature in Git to trigger a remote fetch (as in pushing code to the repository and having the repository trigger a pull origin on the web server). The way I have resolved this was to upload a PHP script to my web server under the default vhost. Within that file I have it set to run ...



Top 50 recent answers are included