Presentation

12
Git plumbing Eimantas Vaičiūnas

Transcript of Presentation

Page 1: Presentation

Git plumbingEimantas Vaičiūnas

Page 2: Presentation

Why C# rocks!

Page 3: Presentation

toc: git objects

Page 4: Presentation

blob

• Content

• Not a file!!!

• Not necessarily part of code-base

• Manipulated with hash-object/cat-file;

Page 5: Presentation

blob demo

Page 6: Presentation

tree

• References blobs as files w/ permissions;

• References trees as directories;

• Canreference blobs and trees as multiple files;

• Manipulated with update-index, write-tree && read-tree;

Page 7: Presentation

tree demo

Page 8: Presentation

commit

• points to a tree

• can have parents (mostly 1, sometimes > 1)

• contains committer / author data (name, email)

Page 9: Presentation

commit demo

Page 10: Presentation

tag• points to commit;

• points to tree;

• points to blob;

• points to anything;

• lightweight vs annotated

Page 11: Presentation

tag demo

Page 12: Presentation

thanks!