Git的commit、tree和blob三个对象之间的关系

2019-08-17  本文已影响0人  BLUE_3ebf

一个commit只能对应一个tree,tree可以包含其他的tree,最终节点是文件,为blob。

查看commit命令

git cat-file -p commit-id

继续查看此commit对应的tree

git cat-file -p 3ebb4b

此时, tree f204dd对应是文件夹,blob为文件。

上一篇下一篇

猜你喜欢

热点阅读