Three areas and a commit
Here you walk the full loop by hand: a file appears on disk, moves into the index, then goes into the repository as a snapshot. Four steps, two commits, and git status after every move - that is roughly what an ordinary working day with git looks like.
What is already set up
The sandbox is almost empty, and that is on purpose. The directory ~/kitchen exists and git init has already run inside it: the hidden .git directory is there, no files, no commits. The author name and email are set in the global config ahead of time (Anna Petrova, anna@example.com), so your first git commit goes through without questions.
cd ~/kitchen
ls -a
. .. .git
git status
On branch main
No commits yet
nothing to cFree with account
Finish this lesson with a free account
This lesson is free once you sign in. Create an account to keep reading and open the lab.
Already have an account? Sign in