How can I discard modified files?

后端 未结 10 762
甜味超标
甜味超标 2020-12-13 18:00

This is a Linux 2.6 kernel repository. I git clone it to my local host.

After that. I didn\'t make any change. But when I \"git status\". I found 13 modified files.

10条回答
  •  甜味超标
    2020-12-13 18:34

    There's another possibility where the issue is filemode-related. In that case you may try git config core.filemode false

    More info: How do I make Git ignore file mode (chmod) changes?

    Edit:

    Another possibility would be the line endings, try setting git config core.autocrlf true|false|input and see if it makes any difference.

    More info: Why should I use core.autocrlf=true in Git?

提交回复
热议问题