git get short hash from regular hash

前端 未结 2 1638
名媛妹妹
名媛妹妹 2020-12-14 14:32

I have a regular long SHA-1 hash string. I would like to get the shortest unambiguous SHA-1 hash string version of it. That is, the one I would get by using git log -1

2条回答
提交回复
热议问题