in a tech meeting of my company. • When you print it, put 16 slides per a page will be good enough. • This slide was published under CC-BY 3.0 License. You don’t need my permission to share it.
.. $ git init Initialized empty Git repository in .../test/.git/ “$ git init test” works same No tricks, no gimmicks! Just an empty directory. Make a repository ←You got it!
| `-- d66d3a32a66f3578317717ccfb18 |-- 54 | `-- 3b9bebdc6bd5c4b22136034a95dd |-- e6 | `-- 9de29bb2d1d6434b8b29ae775ad8 |-- info `-- pack Last of filename is omitted. Some changes outside of objects are omitted
author NISHIO Hirokazu <...> 1337655529 +0900\n committer NISHIO Hirokazu <...> 1337655529 +0900\n \n initial commit\n' I broke lines for readability. Notice on “tree 543b” Its filename was shown when you committed.
objects in .git/objects/ • Their contents are compressed with zlib and their filenames are sha1 hash of uncompressed contents. • They are commit obj, tree obj and blob obj. • Today I omitted on tags and refs (next time?)
commit obj has “parent <hash>” line • New blob has new content of README • Add new files and look changes in tree obj • When you add lines on README, does blob have whether diff or total content?