On my staging server I have a cron job that does a git pull
every two minutes, most of the times everything works fine, but sometimes I notice that the changes that I pushed to the repo are not pulled, when I inspect the issue and run git pull
manually I get an error:
error: Your local changes to the following files would be overwritten by merge:
{the file(s) that I had pushed to the repo}
Please, commit your changes or stash them before you can merge.
I don't understand how these changes are being considered "local changes". any help?