How to make 'git diff' ignore comments

前端 未结 6 1484
闹比i
闹比i 2020-12-05 02:38

I am trying to produce a list of the files that were changed in a specific commit. The problem is, that every file has the version number in a comment at the top of the file

6条回答
  •  不知归路
    2020-12-05 03:11

    git diff -G 
    

    And specify a regular expression that does not match your version number line.

提交回复
热议问题