I apologise if any part of this is confusing; it's currently 11:21PM, and I've been trying to get this working since 1PM.
I'm cloning a private Github repository to my working directory using git clone git@github.com:username/repo.git /var/www
. This works perfectly! No troubles.
I have setup a webhook on Github's side to notify my server of any new push events. This webhook is supposed to pull from the Github repo and update any modified files. It is not doing this.
Every time I call the webhook and run the commands I'm about to show you, it responds indicating that it is "up to date" with the "latest version", however it's indicating that the latest version is the version that it was initially cloned with.
I have run through every solution I can find, and there doesn't seem to be anything that works for my particular issue. My PHP webhook presently sports the following (as it's where I gave up):
git reset --hard HEAD
git pull
git status
git submodule sync
git submodule update
git submodule status
This was supposed to be a method to update multiple servers for me at once.. a way to connect everything. At the moment, the only thing that this whole thing is connecting, is my keyboard with my forehead.
Any help is greatly appreciated.