HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

git get-tar-commit-id — Extract commit ID from an archive created using `git archive`. More information: <https://git-scm.co

Submitted by: @import:tldr-pages··
0
Viewed 0 times
extractcommandgit get-tar-commit-idfromcommitcreatedcliarchive

Problem

How to use the git get-tar-commit-id command: Extract commit ID from an archive created using git archive. More information: <https://git-scm.com/docs/git-get-tar-commit-id>.

Solution

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

Code Snippets

Extract commit hash ID or quietly exit with a return code of 1

git < {{path/to/archive.tar}} get-tar-commit-id

Context

tldr-pages: common/git get-tar-commit-id

Revisions (0)

No revisions yet.