본문 바로가기

공부/git

Git의 내부 - Git 개체

반응형

Git의 내부 - Git 개체

https://git-scm.com/book/ko/v2/Git%EC%9D%98-%EB%82%B4%EB%B6%80-Git-%EA%B0%9C%EC%B2%B4

echo 'test content' | git hash-object -w --stdin
git hash-object -w test.txt
git cat-file -p d670460b4b4aece5915caf5c68d12f560a9fe3e4
git cat-file -t 1f7a7a472abf3dd9643fd615f6da379c4acb3e3a
git cat-file -p master^{tree}
git update-index --add --cacheinfo 100644 83baae61804e65cc73a7201a7252750c76066a30 test.txt
git write-tree
git read-tree --prefix=bak d8329fc1cc938780ffdd9f94e0d364e0ea74f579
echo 'second commit' | git commit-tree 0155eb -p fdf4fc3

반응형