错误提示:
error: Your local changes to the following files would be overwritten by merge:
application/config/config.php
application/controllers/home.php
Please, commit your changes or stash them before you can merge.
Aborting
暴力解决方法:
如果希望保留生产服务器上所做的改动,仅仅并入新配置项:
git stash
git pull
git stash pop
如果希望用代码库中的文件完全覆盖本地工作版本. 方法如下:
git reset --hard
git pull
暴力解决,没毛病!!!
网友评论