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

前端 未结 6 627
广开言路
广开言路 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:37

    git diff doesn't show the difference between last two commits. git diff shows difference between last commit and the changes you have done to your code.

提交回复
热议问题