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. Hi there everyone, it's my first go to see at this site, and paragraph is actually fruitful in support of me, keep up posting such articles. asmr 0mniartist

    Reply
  2. This is really interesting, You are a very skilled blogger. I have joined your feed and look forward to seeking more of your great post. Also, I've shared your site in my social networks! 0mniartist asmr

    Reply
  3. Good information. Lucky me I found your blog by accident (stumbleupon). I've saved as a favorite for later! 0mniartist asmr

    Reply
  4. Hello, everything is going sound here and ofcourse every one is sharing facts, that's genuinely good, keep up writing. asmr 0mniartist

    Reply
  5. It's going to be end of mine day, except before finish I am reading this great piece of writing to improve my knowledge. 0mniartist asmr

    Reply
  6. Dix

    The article is really just a structure of informative article One introductory paragraph, three body paragraphs together with development and support, and also yet one. https://www.tottiposports.com/2021/03/27/what-should-a-conclusion-include-in-an-essay/ http://www.hotellaranacr.com/is-a-colon-used-for-a-list/ https://cesttoi.be/personality-essay/

    Reply