在Linux上git pull线上仓库代码时,出现error: Your local changes to the following files would be overwritten by me

在Windows上工做时未出现过该问题,因而经过命令:git

git diff

查看差别,获得结果:spa

diff --git a/start_crons.sh b/start_crons.sh
old mode 100644
new mode 100755

这是由Linux严格的文件系统权限致使。code

经过命令关闭filemode解决:blog

git config core.filemode false
相关文章
相关标签/搜索