Is it possible to git grep for tabs?

前端 未结 3 575
甜味超标
甜味超标 2020-12-14 01:01

This question specifies that -P allows GNU grep to grep for a tab

grep -P \'\\t\' config/file.txt

However, using git gre

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-14 01:18

    You can work around this by typing a literal tab into your command:

    # type it with ^V then tab
    git grep '  '
    

提交回复
热议问题