定时任务,使用git pull 定时发布代码,代码冲突问题

2019-12-23  本文已影响0人  PHP的点滴

定时任务,使用git pull 定时发布代码,代码冲突问题

error: Your local changes to the following files would be overwritten by merge:
    modules/api/controllers/PaaaaaController.php
    modules/api/controllers/BaaaaaController.php
Please, commit your changes or stash them before you can merge.
Aborting
Updating 12470c3..6c141a2
----------------------------------------------------------------------------
★[2019-12-23 13:38:53] Successful
----------------------------------------------------------------------------

问题分析

这种情况一般有两种情况导致

git stash
git pull
$ git config core.filemode false  // 当前版本库
$ git config --global core.filemode false // 所有版本库
$ git pull
上一篇 下一篇

猜你喜欢

热点阅读