Git marks unmodified files as modified state

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.