git diff old mode 解决办法

把项目部署到服务器后没有做改动,用 git pull 拉取变更的代码提示本地文件已修改。随便 git diff 则显示

git diff xxx
old mode 100644
new mode 100755

明显可以看到是文件权限改变了引起的,解决办法也很简单,只需要设置 git 忽略本地文件的权限价差

git config core.filemode false
git config --global core.filemode false
Responses
  1. Everything is very open with a very clear clarification of the issues. It was truly informative. Your website is extremely helpful. Many thanks for sharing! Erozon Max Omdömen

    Reply
  2. where to get tadalafil https://cialisvet.com/

    Reply
  3. https://cialisbusd.com/ buy tadalis

    Reply
  4. https://cialistrxy.com/ cialis cost

    Reply
  5. I every time used to study article in news papers but now as I am a user of net therefore from now I am using net for content, thanks to web.

    Reply
  6. Directpharmacyusa

    Reply