Files
cheatsheet-tldr/tldr/git-get-tar-commit-id
2025-10-17 00:19:47 +00:00

14 lines
371 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# git get-tar-commit-id
> Extract commit ID from an archive created using `git archive`.
> More information: <https://git-scm.com/docs/git-get-tar-commit-id>.
- Extract commit hash ID or quietly exit with a return code of 1:
`git < {{path/to/archive.tar}} get-tar-commit-id`