Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-show-index: add page #5940

Merged
merged 10 commits into from
Jun 23, 2021
12 changes: 12 additions & 0 deletions pages/common/git-show-index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# git show-index

> Show packed archive index.
Waples marked this conversation as resolved.
Show resolved Hide resolved
> More information: <https://git-scm.com/docs/git-show-index>.

- Read the '.idx' file for a Git packfile and dump it's contents (stdout):
bl-ue marked this conversation as resolved.
Show resolved Hide resolved

`git show-index {{path/to/file}}`
Waples marked this conversation as resolved.
Show resolved Hide resolved

- Specify the hash algorithm for the index file (experimental):

`git show-index --object-format={{hash_algorithm}} {{path/to/file}}`
Waples marked this conversation as resolved.
Show resolved Hide resolved