0

I got short object hash from somewhere, for example, git diff:

diff --git a/Note1.md b/Note1.md
index 2b95b9f..b9596f0 100644
--- a/Note1.md
+++ b/Note1.md
@@ -1328,6 +1328,12 @@ variables.(starting with (@)

How can I get 40 byte length names of those short ID (2b95b9f and b9596f0)?

phd
  • 82,685
  • 13
  • 120
  • 165
foobar
  • 63
  • 3

1 Answers1

1

Use the following command:

git show --pretty=%H <short-hash>

yorammi
  • 6,272
  • 1
  • 28
  • 34