Step 01 / 13
In this chapter
Your repository is ready. Before saving a version, you need to understand how Git sees your files. That's what this chapter is about.
By the end of this chapter, you will be able to:
- Explain Git's 3 areas: working directory, staging area, and repository
- Read the output of git status
- Stage files with git add
- Unstage a file with git restore --staged
- See what changed with git diff
- Undo a change with git restore
Tip
We'll keep working on the my-portfolio project from chapter 1. If you're jumping in here, create a folder containing an index.html file and run git init in it.