git pull出现 composer.lock被锁定

git pull出现 composer.lock被锁定,即是当前文件不是最新

  1. git fetch origin
  2. git reset --hard origin/master
  3. git pull

Your local changes to the following files would be overwritten by merge

error: Your local changes to the following files would be overwritten by merge:
protected/config/main.php
Please, commit your changes or stash them before you can merge.
kkdemian
hyperliquid