我直接用git pull的时候遇到这个错误:

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.

希望用代码库中的文件完全覆盖本地工作版本. 方法如下

git reset --hard
git pull

然后就可以了

相关文章:

  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2021-11-04
  • 2021-12-08
  • 2021-06-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-21
  • 2022-12-23
  • 2021-08-07
  • 2021-07-24
  • 2021-05-07
  • 2022-12-23
相关资源
相似解决方案