In short git checkout . will just remove those local (forge) changes. Should be fine as they will be overwritten by the new version in git. The reason they are changed on forge is most likely because you ran npm run prod on forge
Aug 25, 2020
5
Level 2
Failed deployment on Forge (local changes to be overwritten, github)
I have not been having that many problems deploying changes with Laravel Forge, until now. I'm kinda new to github and not sure what to do about this error (from Forge):
* branch master -> FETCH_HEAD
e977ed3..b50e16a master -> origin/master
error: Your local changes to the following files would be overwritten by merge:
public/css/app.css
public/css/style.min.css
public/js/app.js
public/mix-manifest.json
Please commit your changes or stash them before you merge.
Aborting
I read somewhere to do this on the server:
git checkout .
Not sure what that does and if it works or not.
Hope someone will be able to help me here :)
, Kenneth
Level 102
1 like
Please or to participate in this conversation.