In order to understand the steps in this tutorial, you should be familiar with:
cat
command on the command line to read filesAfter doing this tutorial you will know how to
hash-object
commandOpen a text file that you can write notes into while you work.
While going through these lessons, whenever a git command returns a hash, copy that hash, paste it into the notepad and add a note so you can remember what content that hash points to.
This is because future steps might ask you to use that hash as the input for a command.
Read the introduction to the Git Internals chapter of the Official Git Book: Git Internals - Plumbing and Porcelain
Read the first section of the page on Git Internals - Git Objects. Stop at the heading ‘Tree Objects’. We will cover that in the next lesson.
Run
git status
You should see output like:
On branch master
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be committed)
test.txt
There is one untracked file called ‘test.txt’. It hasn’t been staged or committed to git yet. In the next lesson you will learn the internal commands git uses to stage that file.
Proceed to the Tree Objects lesson.