I use composer which keeps a lock file (composer.lock) where it stores the current librariy status. Whenever I do a composer update
, this file gets rewritten. Later GIT tries to merge it on push/pulls.
(We always get conflicts between different developer machines which should be ignored)
Is there a way to keep the composer.lock file in GIT but have something like a "force overwrite" policy applied to it?
Background: So far I kept composer.lock in the gitignore file but that means I have to rerun composer update
on all systems (instead of composer install
). And that takes too much time.