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.
解决方法:
一、用代码库中的文件完全覆盖本地工作版本:
1、git reset --hard
2、git pull
二、保留生产服务器上所做的改动,仅仅并入新配置项
1、git stash
2、git pull
3、git stash pop
使用git diff -w +文件名,确认代码自动合并的情况