'git status' shows changed files, but 'git diff' doesn't

前端 未结 15 1890
轻奢々
轻奢々 2020-12-12 11:37

I\'ve had a look at all similar questions. However, I\'ve double checked and something strange is definitely happening.

On one server (Solaris with Git 1.8.1) I clon

15条回答
  •  伪装坚强ぢ
    2020-12-12 12:19

    For me, it had something to do with file permissions. Someone with Mac/Linux on my project seems to commit some files with non-default permissions which my Windows git client failed to reproduce. Solution for me was to tell git to ignore file permissions:

    git config core.fileMode false
    

    Other insight: How do I make Git ignore file mode (chmod) changes?

提交回复
热议问题