I am trying to workout how I can get my public_html
dir to update directly from a git repository. On looking through Google at the tutorials available they all include the step of a local machine - I do not want this as the file will be updated via GITHUB GUI and the editor.
Currently I have my git
folder called git
within my public_html
dir and within the hooks/post-receive
I have the line of code below but I am unsure how to link it all back to the github
repository and have it update if there is a file to be updated.
hooks/post-receive:
GIT_WORK_TREE=/home/userName/public_html git checkout -f master