在Linux上git pull线上仓库代码时,出现error: Your local changes to the following files would be overwritten by merge
时间:2018-08-16 17:14:49
收藏:0
阅读:182
在Windows上工作时未出现过该问题,于是通过命令:
git diff
查看差异,得到结果:
diff --git a/start_crons.sh b/start_crons.sh old mode 100644 new mode 100755
这是由Linux严格的文件系统权限导致。
通过命令关闭filemode解决:
git config core.filemode false
原文:https://www.cnblogs.com/xzysaber/p/9488336.html
评论(0)