I had problems with .env file being added and removed to the gitignore and the repo by mistake, now everytime i need to rebuild nixpacks fails to pull changes due to changes on the repo on the server (namely .env file created by the environment tab)
I was able to fix it by opening the server console and going to /etc/easypanel/projects/my-project/my-service/code and running
git checkout -- .env
to discard "local" changes to the file then the deployment would succeed.
It's solved for me but maybe provide it as an option for everyone else or include this in the documentation