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
  • 69,888
  • 11
  • 97
  • 133
foobar
  • 53
  • 3

1 Answers1

1

Use the following command:

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

yorammi
  • 5,738
  • 1
  • 27
  • 33