再一次提交代码时报错
$ git stash pop
error: Your local changes to the following files would be overwritten by merge:
application/controllers/admin/Guide.php
Please commit your changes or stash them before you merge.
Aborting
The stash entry is kept in case you need it again.
原因是:该文件的代码已被更改,而远程仓库的代码没有改动,git pull
拉下代码后,执行git stash pop
发现该文件不一样,导致无法从缓冲区里提取代码。
解决方法:将该文件copy一份,然后从项目中删除,再执行git stash pop
,之后在对文件进行修改即可。