代码之家  ›  专栏  ›  技术社区  ›  Martin DeMello

有“git find”吗?

git
  •  6
  • Martin DeMello  · 技术社区  · 16 年前

    有什么问题吗 git find 模拟 git grep

    3 回复  |  直到 16 年前
        1
  •  6
  •   Geoff Reedy    16 年前

    可以使用列出树对象中的所有文件 git ls-tree -r --name-only --full-tree <treeish>

        2
  •  1
  •   Aaron Digulla    16 年前

    尝试 git-ls-tree 并将输出 grep(1)

        3
  •  1
  •   Randal Schwartz    16 年前

    git ls-files 'yourpattern'