I am using Bitbucket, DigitalOcean, and LaravelForge.
Recently went I went to push some changes I received the following error:
error: Your local changes to the following files would be overwritten by merge:
storage/fonts/dompdf_font_family_cache.php
Please commit your changes or stash them before you merge.
Aborting
I have deleted the files from my local machine, forced the push, and am still getting the same error.
I have even checked the git file list and the file is not there.
What is going on?
How can I fix this?
@dmhall0 I'll often add git reset --hard HEAD at the very top (first line, before the git pull command) of my deploy script in Forge to avoid such issues. It means exactly what it says. Some Git watched file has been modified and can't do a pull until that file is reset.
@dmhall0 What do you mean you "did" them? Did you run the commands locally? You need to add that to your deploy script in Forge for this to work. Or SSH into forge and run this in your project folder. I would highly recommend adding it to the deploy script as there are a number of things that can cause these type of errors. The problem is on the server, not locally.
Correct... first line in my deployment script on Forge.
I am using BitBucket.
I have been deploying for months and then literally this came out of nowhere. I didn't touch this file or its associated files at all.
I appreciate your help. I have someone looking into it.