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

361 B
Raw Permalink Blame History

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}}