In recent days, when using Netbeans as a development environment for the Ubuntu system and using Git as a code manager, the prompt code has been marked as modified, but when compared carefully, it is not modified.
After reading the following articles, according to their actual situation compared to the next, found that I was in the code cloning, the intention of the entire project directory was executed chmod 777, so that I have now encountered the problem!
The following article references the source:http://blog.sina.com.cn/s/blog_6accbcc30101fcac.html
StackOverflow on a bunch of people on this issue, most people are lineending different causes, such as Windows and mac are different, I tried to modify the git configuration plus core.autocrlf=false(execute gitconfig--system ) and found no. Modified the Core.whitespace=cr-at-eol or not.
Then suddenly found that my sourcetree on the display of the changes to the prompt is:modified,mode 100644 to mode 100755, suddenly remembered that he had done on the project folder chmod777 , which means that git thinks the file has changed its permissions, so it marks the file as changed, but we don't see the difference when we look at Gitdiff or comparisons.
And then modify the git configuration, plus core.filemode=false, found or not, it is estimated that my local operation is wrong, resulting in this setting does not work.
Git marks unmodified files as modified state