EduFlow
Git & GitHub

Checkpoint: Git's Model

Five questions on this section. Answer all of them, then see your score and why each answer is right or wrong.

Question 1 of 5

You run git add index.html, edit index.html again, then run git commit -m "Update intro". Which version of the file goes into the commit?

Question 2 of 5

git status -s shows:

Text
A  contact.html
?? notes.txt

What does git commit -m "Add contact page" record?

Question 3 of 5

Which statement about commit IDs is true?

Question 4 of 5

Here is the output of git log --oneline --graph:

Text
*   9d1f0a2 (HEAD -> main) Merge branch 'contact'
|\
| * 6b2c8e1 (contact) Add contact form
* | 3e7a4d9 Fix header spacing
|/
* 1f0c5b8 Add home page

Which commit is HEAD~1?

Question 5 of 5

You want to review exactly what your next commit will contain before running git commit. Which command shows it?

5 questions unanswered