filmov
tv
Git Internals - the Commit
Показать описание
In this video on Git Internal we look into the Commit object. This file simply contains a pointer to a Tree object, the author of the commit and the comment that was added.
Commits give us a point in time representation of our repository and are stored within the Objects folder.
We step through creating a Commit object by first creating a file and adding it to the staging area, then performing the commit and looking in the .git folder to see what has been added here. We inspect the contents of the file using git cat-file to see its type and also it contents.
Commits give us a point in time representation of our repository and are stored within the Objects folder.
We step through creating a Commit object by first creating a file and adding it to the staging area, then performing the commit and looking in the .git folder to see what has been added here. We inspect the contents of the file using git cat-file to see its type and also it contents.