【发布时间】:2022-11-12 09:44:36
【问题描述】:
假设我有 git commit message Hello World。
:/"World" 会找到它,:/"world" 不会。
有什么方法可以使 git 不区分大小写匹配?
【问题讨论】:
标签: git
假设我有 git commit message Hello World。
:/"World" 会找到它,:/"world" 不会。
有什么方法可以使 git 不区分大小写匹配?
【问题讨论】:
标签: git
:/<text> syntax 似乎不支持。
作为解决方法,这将起作用:
git log :/[Ww]orld
或者,使用-i/--regexp-ignore-case:
git log -i --grep "world"
【讨论】: