在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
相關文章
相關標籤/搜索