하나의 파일을 간단한 git repo로 체크인했습니다. 내 조사에서.Git에서 트리와 커밋 유형의 차이점은 무엇입니까?
$ git cat-file -t 8b4e834eba22e60c284c7b77e43d3c29e619f92f
commit
$ git cat-file -t c7c5b03aea0b8c970c93de3670c28f2108948266
tree
$ git cat-file -t e965047ad7c57865823c7d992b1d046ea66edf78
blob
내가 자식-LS-를 실행하려고하는 경우 : .git/objects
- 에 배치 객체의 세 가지 유형의 예를 들어
- 트리
- 방울
커밋이있다 트리를 blob에 놓으면 오류가 발생합니다.
그러나 commit
또는 tree
개체에서도 실행할 수 있습니다. 또한 commit
개체입니다 tree
는
$ git ls-tree -t c7c5b03aea0b8c970c93de3670c28f2108948266
100644 blob e965047ad7c57865823c7d992b1d046ea66edf78 readme.txt
$ git ls-tree -t 8b4e834eba22e60c284c7b77e43d3c29e619f92f
100644 blob e965047ad7c57865823c7d992b1d046ea66edf78 readme.txt
인가? 차이점은 무엇입니까?