git object

 

查看文件类型    blob tree  commit tag

git cat-file -t  013612

013612 是文件夹名+文件组成的前6位数 

 

查看文件内容

git cat-file -p  013612

 

查看文件大小

git cat-file -s  013612

 

object对象哈希值的计算

文件类型 + 空格 + 长度 +内容

 

 

通过 git add 会生成git对象。

 

blob对象

 

git ls-files

 

 

git ls-files -s

 100644 权限

 

 

文件的状态

 

posted @ 2018-11-27 15:24  富坚老贼  阅读(168)  评论(0编辑  收藏  举报