Git查看提交历史及提交的信息内容
git log --pretty=raw 查看repository提交历史信息 git cat-file -t hash值(前面6位) 查看文件类型 git cat-file -p hash值 查看文件内容 ![]() 2、查看文件类型 $ git cat-file -t hash值(前6位) ![]() |
3、查看文件内容 $ git cat-file -p hash值(6位) ![]() |
第二次提交的内容,有parent![]() 第二次提交有parent,第一次没有parent |
![]() |
git log --pretty=raw 查看repository提交历史信息 git cat-file -t hash值(前面6位) 查看文件类型 git cat-file -p hash值 查看文件内容 ![]() 2、查看文件类型 $ git cat-file -t hash值(前6位) ![]() |
3、查看文件内容 $ git cat-file -p hash值(6位) ![]() |
第二次提交的内容,有parent![]() 第二次提交有parent,第一次没有parent |
![]() |