简体   繁体   中英

Git diff showing unchanged files

A repository I've been working and committing/pushing with for a while is showing unchanged files have been changed.

After adding/committing these files I can generate a patch which shows they have not been changed. Why does git think these are changed?

 .../bar/index.js     |   0
 .../foo.txt          |   0

The difference in the file permissions. I found the difference by looking through git diff and seeing this.

old mode 100755  
new mode 100644  

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM