Title: Quiz 7 — Version Control with Git
Course: AIINFRA 100: AI Systems & Development Environments > Section: Week 07 — Version Control with Git

Q: What does it mean that Git is a "distributed" version control system?
- Only the server holds the project's history
- Every clone contains the complete project history, not just the current files
- Files are distributed across multiple cloud providers automatically
- Multiple people must be editing at the same time
A: Every clone contains the complete project history, not just the current files

Q: Which command moves a change from the working directory into the staging area?
- `git commit`
- `git status`
- `git add`
- `git log`
A: `git add`

Q: What are the three areas in Git's basic mental model, in order, from where you first edit a file to where it becomes permanent history?
Feedback: Sample/expected answer: Working directory, staging area (index), repository

Q: Writing a rule into .gitignore will automatically remove a file from Git's history if that file was already committed before the rule was added.
- True
- False
A: False

Q: Which of these would you typically want listed in a .gitignore file for an AI/ML project?
- `train.py`
- `README.md`
- `.env`
- `requirements.txt`
A: `.env`

Q: A Git branch is actually a full copy of every file in your project at the time the branch was created.
- True
- False
A: False

Q: What does a merge commit preserve that a rebase does not?
- The exact file contents
- The full, honest history of both lines of work, including that they happened in parallel
- A linear, straight-line history
- The original commit hashes of the other branch
A: The full, honest history of both lines of work, including that they happened in parallel

Q: True or false, and explain briefly: "Making a git commit is the same thing as backing your work up to the cloud."
Feedback: Sample/expected answer: False — a commit is recorded only in your local repository on your own machine; sending commits to a remote server (like GitHub) is a separate action called "pushing," covered in Week 8.