From 96df178ccd05ac79377b4e30bb7c349176a99f68 Mon Sep 17 00:00:00 2001 From: nathias Date: Sat, 15 Oct 2022 10:51:31 +0200 Subject: [PATCH 01/11] git hash-object: add page --- pages/common/git-hash-object.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/git-hash-object.md diff --git a/pages/common/git-hash-object.md b/pages/common/git-hash-object.md new file mode 100644 index 00000000000000..71a3eeccd0b259 --- /dev/null +++ b/pages/common/git-hash-object.md @@ -0,0 +1,20 @@ +# git hash-object + +> Computes the unique hash key of content and optionally creates an object with specified type. +> More information: . + +- Compute the ID that would be used to store it in git database: + +`git hash-object {{/path/to/file}}` + +- Compute the ID and store it in git database: + +`git hash-object -w {{/path/to/file}}` + +- Compute the ID and specify the type of object: + +`git hash-object -t {blob | tree | commit | tag} {{/path/to/file}}` + +- Compute the ID from user input instead of a file: + +`git hash-object --stdin` From 21566c46ffccb02708ed99e908c64779122b1183 Mon Sep 17 00:00:00 2001 From: nath1as Date: Sun, 16 Oct 2022 08:59:20 +0200 Subject: [PATCH 02/11] Update pages/common/git-hash-object.md Co-authored-by: Axel Navarro --- pages/common/git-hash-object.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/git-hash-object.md b/pages/common/git-hash-object.md index 71a3eeccd0b259..ecdc5002720d0b 100644 --- a/pages/common/git-hash-object.md +++ b/pages/common/git-hash-object.md @@ -13,7 +13,7 @@ - Compute the ID and specify the type of object: -`git hash-object -t {blob | tree | commit | tag} {{/path/to/file}}` +`git hash-object -t {{blob|commit|tag|tree}} {{path/to/file}}` - Compute the ID from user input instead of a file: From bb6012af8353416827ab3d526ed174baa934ad23 Mon Sep 17 00:00:00 2001 From: nath1as Date: Sun, 16 Oct 2022 08:59:29 +0200 Subject: [PATCH 03/11] Update pages/common/git-hash-object.md Co-authored-by: Axel Navarro --- pages/common/git-hash-object.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/git-hash-object.md b/pages/common/git-hash-object.md index ecdc5002720d0b..2b0f0364c92df5 100644 --- a/pages/common/git-hash-object.md +++ b/pages/common/git-hash-object.md @@ -5,7 +5,7 @@ - Compute the ID that would be used to store it in git database: -`git hash-object {{/path/to/file}}` +`git hash-object {{path/to/file}}` - Compute the ID and store it in git database: From 34a727ff3dfd0b58843cf84516c5dc4614481597 Mon Sep 17 00:00:00 2001 From: nath1as Date: Sun, 16 Oct 2022 08:59:37 +0200 Subject: [PATCH 04/11] Update pages/common/git-hash-object.md Co-authored-by: Axel Navarro --- pages/common/git-hash-object.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/git-hash-object.md b/pages/common/git-hash-object.md index 2b0f0364c92df5..31137412145eca 100644 --- a/pages/common/git-hash-object.md +++ b/pages/common/git-hash-object.md @@ -9,7 +9,7 @@ - Compute the ID and store it in git database: -`git hash-object -w {{/path/to/file}}` +`git hash-object -w {{path/to/file}}` - Compute the ID and specify the type of object: From 0c2269858129399dfcdc045128c8039c396eee2b Mon Sep 17 00:00:00 2001 From: nath1as Date: Sun, 16 Oct 2022 08:59:48 +0200 Subject: [PATCH 05/11] Update pages/common/git-hash-object.md Co-authored-by: Axel Navarro --- pages/common/git-hash-object.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/git-hash-object.md b/pages/common/git-hash-object.md index 31137412145eca..64301c3d3f8cfc 100644 --- a/pages/common/git-hash-object.md +++ b/pages/common/git-hash-object.md @@ -15,6 +15,6 @@ `git hash-object -t {{blob|commit|tag|tree}} {{path/to/file}}` -- Compute the ID from user input instead of a file: +- Compute the ID from stdin: `git hash-object --stdin` From 648ec8b72a64de93dcc0902a1dc81671acd431f8 Mon Sep 17 00:00:00 2001 From: nath1as Date: Sun, 16 Oct 2022 08:59:58 +0200 Subject: [PATCH 06/11] Update pages/common/git-hash-object.md Co-authored-by: Axel Navarro --- pages/common/git-hash-object.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/git-hash-object.md b/pages/common/git-hash-object.md index 64301c3d3f8cfc..74a79ca4044285 100644 --- a/pages/common/git-hash-object.md +++ b/pages/common/git-hash-object.md @@ -17,4 +17,4 @@ - Compute the ID from stdin: -`git hash-object --stdin` +`cat {{path/to/file}} | git hash-object --stdin` From e5d1a762a72a853647758577aff64186450500fb Mon Sep 17 00:00:00 2001 From: nath1as Date: Sun, 16 Oct 2022 09:00:11 +0200 Subject: [PATCH 07/11] Update pages/common/git-hash-object.md Co-authored-by: Axel Navarro --- pages/common/git-hash-object.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/git-hash-object.md b/pages/common/git-hash-object.md index 74a79ca4044285..4c023a0b573ef0 100644 --- a/pages/common/git-hash-object.md +++ b/pages/common/git-hash-object.md @@ -7,7 +7,7 @@ `git hash-object {{path/to/file}}` -- Compute the ID and store it in git database: +- Compute the object ID and store it in the Git database: `git hash-object -w {{path/to/file}}` From 176bd5f33a0e74883984794ad5a8239bb10b78fa Mon Sep 17 00:00:00 2001 From: nath1as Date: Sun, 16 Oct 2022 09:00:25 +0200 Subject: [PATCH 08/11] Update pages/common/git-hash-object.md Co-authored-by: Axel Navarro --- pages/common/git-hash-object.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/git-hash-object.md b/pages/common/git-hash-object.md index 4c023a0b573ef0..b6861f1bdd7094 100644 --- a/pages/common/git-hash-object.md +++ b/pages/common/git-hash-object.md @@ -11,7 +11,7 @@ `git hash-object -w {{path/to/file}}` -- Compute the ID and specify the type of object: +- Compute the object ID specifying the object type: `git hash-object -t {{blob|commit|tag|tree}} {{path/to/file}}` From 1fc5011ebd47ec56a639023ae189488e5910ab05 Mon Sep 17 00:00:00 2001 From: nath1as Date: Sun, 16 Oct 2022 22:03:09 +0200 Subject: [PATCH 09/11] Update pages/common/git-hash-object.md Co-authored-by: Axel Navarro --- pages/common/git-hash-object.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/git-hash-object.md b/pages/common/git-hash-object.md index b6861f1bdd7094..ff39b04cf65f26 100644 --- a/pages/common/git-hash-object.md +++ b/pages/common/git-hash-object.md @@ -3,7 +3,7 @@ > Computes the unique hash key of content and optionally creates an object with specified type. > More information: . -- Compute the ID that would be used to store it in git database: +- Compute the object ID without store it: `git hash-object {{path/to/file}}` From ddf900691f12d2f926aad8865b388e0e2998174c Mon Sep 17 00:00:00 2001 From: nath1as Date: Sun, 16 Oct 2022 22:08:45 +0200 Subject: [PATCH 10/11] Update git-hash-object.md --- pages/common/git-hash-object.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/git-hash-object.md b/pages/common/git-hash-object.md index ff39b04cf65f26..3833af840c5111 100644 --- a/pages/common/git-hash-object.md +++ b/pages/common/git-hash-object.md @@ -3,7 +3,7 @@ > Computes the unique hash key of content and optionally creates an object with specified type. > More information: . -- Compute the object ID without store it: +- Compute the object ID without storing it: `git hash-object {{path/to/file}}` From 1460eab08309f7e00e1cd5327c9e2c391b48431e Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Wed, 19 Oct 2022 16:51:41 -0300 Subject: [PATCH 11/11] Update pages/common/git-hash-object.md --- pages/common/git-hash-object.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/git-hash-object.md b/pages/common/git-hash-object.md index 3833af840c5111..c9b56fa1715954 100644 --- a/pages/common/git-hash-object.md +++ b/pages/common/git-hash-object.md @@ -15,6 +15,6 @@ `git hash-object -t {{blob|commit|tag|tree}} {{path/to/file}}` -- Compute the ID from stdin: +- Compute the object ID from stdin: `cat {{path/to/file}} | git hash-object --stdin`