• git ref-parse

    git ref-parse

    显示某个指示符的SHA1哈希值。

    1. $ git ref-parse HEAD