“git diff” does nothing

后端 未结 5 1699
我寻月下人不归
我寻月下人不归 2021-01-30 12:32

I presume this is a configuration error somewhere, but I can\'t figure out where. Regular git commands appear to work fine, but \"git diff\" does nothing. To be safe, I remove

5条回答
  •  深忆病人
    2021-01-30 12:53

    If you are using it outside of a real repository or work-copy, its behaviour is identical to the GNU diff. So you need to inform the 2 directories or files to be compared. Example:

    git diff old_dir new_dir.

    If there is any difference between them, the output will show you, as expected.

提交回复
热议问题