Failed to deploy because of the composer.lock file
Hi, I recently updated to Laravel 5.6 and when I push to GitHub the change go thru but Forge always come's up with an error
From github.com:Hjortur17/nfs
branch master -> FETCH_HEAD
error: Your local changes to the following files would be overwritten by merge:
composer.lock
Please, commit your changes or stash them before you can merge.
Aborting
Updating 3376a21..ceece9e
@hjortur17 The error indicates that changes have been made to composer.lock on your server and that they would be overwritten by git pull. It's up to you to decide what should happen with those changes. You can commit or stash the file like @rin4ik suggested, but you can also reset the file to its original state in the repo by doing git checkout <filename-here> (basically undo the changes that were made to it). There's no use in commiting the changes if you don't intend to use them?