S
S
Sergey Pugovkin2017-08-14 00:09:45
git
Sergey Pugovkin, 2017-08-14 00:09:45

"Your local changes in the specified files will be overwritten when merging" - how to force overwrite?

In the crown set to be executed:

cd /home/admin/pma/www && git pull -q origin STABLE && composer update --no-dev

to update phpMyAdmin. But for some reason an error popped up:
error: Your local changes to the specified files will be overwritten when merging:
composer.lock
Commit or stash your changes before merging branches.
interrupt

How to tell him to overwrite without questions? None of my local changes are there. Except config.inc.php

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2017-08-14
@Driver86

You need to do composer install, not update, so that it does not touch the .lock file.
And resetting Git with git reset --hard.
Or add composer.lock to .gitignore.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question