2

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
icecream
  • 31
  • 3
  • Do the files have special caracters? are you switching between different os (different line endings)? – Daniel Feb 16 '19 at 21:59
  • I have not switched operating systems, I'm not sure if they have special characters. Is there a way I can get them to show up on the diffs/patches? – icecream Feb 16 '19 at 22:04
  • You may want to take a look here: http://www.codewrecks.com/blog/index.php/2014/04/22/git-showing-file-as-modified-even-if-it-is-unchanged/ and here: https://stackoverflow.com/questions/5787937/git-status-shows-files-as-changed-even-though-contents-are-the-same – Daniel Feb 16 '19 at 22:11
  • What command are you using? – evolutionxbox Feb 16 '19 at 22:15
  • Possible duplicate of [How do I remove files saying "old mode 100755 new mode 100644" from unstaged changes in Git?](https://stackoverflow.com/questions/1257592/how-do-i-remove-files-saying-old-mode-100755-new-mode-100644-from-unstaged-cha) – icecream Feb 16 '19 at 22:21

1 Answers1

1

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

old mode 100755  
new mode 100644  
icecream
  • 31
  • 3