Recall & Review
beginner
What are the three main areas where files move in Git?
The three main areas are: Working Directory (where you edit files), Staging Area (where you prepare files to commit), and Repository (where committed files are stored).
Click to reveal answer
beginner
What command moves files from the Working Directory to the Staging Area?
The command is
git add <filename>. It tells Git to prepare the file for the next commit.Click to reveal answer
beginner
What command moves files from the Staging Area to the Repository?
The command is
git commit -m "message". It saves the staged changes permanently in the repository.Click to reveal answer
intermediate
What happens if you change a file after staging it but before committing?
The changes after staging are not included in the commit unless you stage the file again with
git add <filename>.Click to reveal answer
beginner
Explain the role of the Working Directory in Git.
The Working Directory is where you create and edit files. It reflects the current state of your project on your computer before staging or committing.
Click to reveal answer
Which Git area holds files you are currently editing?
✗ Incorrect
The Working Directory is where you edit files before staging or committing.
What command stages a file for commit?
✗ Incorrect
git add moves files from the Working Directory to the Staging Area.After staging, how do you save changes permanently in Git?
✗ Incorrect
git commit saves staged changes to the repository.If you edit a file after staging it, what must you do to include the new changes in the commit?
✗ Incorrect
You must stage the file again with
git add to include new changes.Which area in Git stores committed files?
✗ Incorrect
The Repository stores committed files permanently.
Describe the journey of a file from being edited to being saved in Git.
Think about the commands and areas the file passes through.
You got /5 concepts.
Explain why staging is important in Git and how it helps control commits.
Consider how staging lets you choose what to include in a commit.
You got /4 concepts.