如果系统中有一些配置文件在服务器上做了配置修改,然后后续开发又新添加一些配置项的时候,
在发布这个配置文件的时候,会发生代码冲突:
shell
error: Your local changes to the following files would be overwritten by merge:
protected/config/main.PHP
Please, commit
今天用git pull来更新代码,遇到了下面的问题:
Please, commit your changes or stash them before you can merge. Aborting
1.stash
通常遇到这个问题,你可以直接commit你的修改;但我这次不想这样。
看看git stash是如何做的。
git stash
git pull
git stash pop
The following untracked working tree files would be overwritten by merge
Updating 3682dc0..0426f81
error: The following untracked working tree files would be overwritten by merge:
app/lmcjlcms/view/