Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
什么样的属性构成了 Git 中的哈希?我意识到它可能会因对象类型(提交、树等)而有所不同。
例如,提交哈希是如何产生的?它是否可能涉及提交消息和更改?
来自Pro Git:
该命令的输出是一个 40 个字符的校验和哈希。这是 SHA-1 散列 - 您正在存储的内容的校验和加上一个标头
那一章有更详细的内容。