commands.sh

git get-tar-commit-id

all

Extract commit ID from an archive created using `git archive`.

More info →

Examples (1)

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

git < path/to/archive.tar get-tar-commit-id
made by @shridhargupta | data from tldr-pages