我直接用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
然后就可以了