diff --git a/pages/common/git-get-tar-commit-id.md b/pages/common/git-get-tar-commit-id.md new file mode 100644 index 0000000000..905e76f8f9 --- /dev/null +++ b/pages/common/git-get-tar-commit-id.md @@ -0,0 +1,8 @@ +# git get-tar-commit-id + +> Extract commit ID from an archive created using `git archive`. +> More information: . + +- Extract commit hash ID or quietly exit with a return code of 1: + +`git < {{path/to/archive.tar}} get-tar-commit-id`