From 4ee2c31bf36b43a541dbf3e21d29b2bf466f0617 Mon Sep 17 00:00:00 2001 From: Shantanu Pai <142613623+scar027@users.noreply.github.com> Date: Thu, 16 Oct 2025 06:30:59 +0530 Subject: [PATCH] git-get-tar-commit-id: add page (#18751) Signed-off-by: scar027 Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/common/git-get-tar-commit-id.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 pages/common/git-get-tar-commit-id.md 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`