Git - some files are marked as changed but 'git diff' doesn't show anything

前端 未结 6 625
广开言路
广开言路 2021-02-02 07:11

I am quite new to Git, thus maybe I am missing something here.

dan@one:/var/www/$ git status -s
M  GoogleChromeExtension.js
M  ApiClient.js

So

6条回答
  •  星月不相逢
    2021-02-02 07:26

    I just recently had this problem, and found it happened because I changed my .gitattributes file for the repository. Have you changed any of your .gitattributes files recently? Are all the files that are changed of the same type? My recent issues affected *.sql files, for example. When I undid the change to .gitattributes, the source files became unchanged again.

提交回复
热议问题