Files
tldr/pages.zh/common/git-show-index.md

12 lines
361 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# git show-index
> 显示 Git 仓库的打包档案索引。
> 更多信息:<https://git-scm.com/docs/git-show-index>。
- 读取 Git 包文件的 IDX 文件,并将其内容转储到 `stdout`
`git show-index {{path/to/file.idx}}`
- 指定索引文件的哈希算法(实验性):
`git show-index --object-format={{sha1|sha256}} {{path/to/file}}`