【问题标题】:Is there a case-insensitive version of the `:/<text>` tree-ish?`:/<text>` 是否有不区分大小写的版本?
【发布时间】:2022-11-12 09:44:36
【问题描述】:

假设我有 git commit message Hello World

:/"World" 会找到它,:/"world" 不会。

有什么方法可以使 git 不区分大小写匹配?

【问题讨论】:

    标签: git


    【解决方案1】:

    :/&lt;text&gt; syntax 似乎不支持。
    作为解决方法,这将起作用:

    git log :/[Ww]orld
    

    或者,使用-i/--regexp-ignore-case

    git log -i --grep "world"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-04-27
      • 2013-03-16
      • 2011-03-27
      • 1970-01-01
      • 2011-11-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多