Recall & Review
beginner
What is the working directory in Git?
The working directory is the folder on your computer where you edit and create files. It shows the current state of your project files before you save changes to Git.
Click to reveal answer
beginner
What does it mean if a file is modified in the working directory?
A modified file means you changed it in your working directory but have not yet saved those changes to Git with a commit.
Click to reveal answer
beginner
How can you see the state of your working directory in Git?
Use the command
git status. It shows which files are modified, staged, or untracked in your working directory.Click to reveal answer
intermediate
What is the difference between the working directory and the staging area?
The working directory is where you edit files. The staging area is where you prepare files to be saved in the next commit.
Click to reveal answer
intermediate
What happens if you run
git checkout -- <file> on a modified file in the working directory?It discards changes in the working directory for that file, restoring it to the last committed version.
Click to reveal answer
What does the working directory in Git represent?
✗ Incorrect
The working directory is where your project files live on your computer and where you make changes.
Which command shows the state of your working directory?
✗ Incorrect
git status shows which files are modified, staged, or untracked in your working directory.
If a file is modified in the working directory, what does that mean?
✗ Incorrect
Modified means the file has changes in the working directory that are not yet committed.
What does the command
git checkout -- <file> do to a modified file?✗ Incorrect
This command discards local changes in the working directory for that file.
Which area holds files you want to include in the next commit?
✗ Incorrect
The staging area is where you prepare files before committing them to Git.
Explain the role of the working directory in Git and how it relates to the staging area and commits.
Think about the flow of changes from editing to saving in Git.
You got /3 concepts.
Describe how you can check the state of your working directory and what information you get from it.
This command helps you know what files need attention.
You got /3 concepts.