我从某处获得了短对象哈希,例如,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 (@)
如何获得那些短ID(2b95b9f和b9596f0)的40字节长度名称?
答案 0 :(得分:1)
使用以下命令:
git show --pretty=%H <short-hash>