Git & GitHub Mastery Quiz

10:00

Undoing changes, rebasing, tags, pull requests, CI, stash, cherry-pick and bisect. · 10 questions

Question 1 of 10
Which command unstages a file but keeps your edits?
Question 2 of 10
A commit already pushed to `main` introduced a bug. What is the safest way to undo it?
Question 3 of 10
Why doesn't adding `db.sqlite3` to `.gitignore` stop Git from tracking it?
Question 4 of 10
Where do GitHub Actions workflow files live?
Question 5 of 10
What does this sequence do?
git reset --soft HEAD~3
git commit -m "Add GST report"
Question 6 of 10
Why is `git push --force-with-lease` preferred over `git push --force` after a rebase?
Question 7 of 10
You need one bug-fix commit from `develop` on `release/2.3` without merging everything else. Use…
Question 8 of 10
Which statement about tags is correct?
Question 9 of 10
Roughly how many test steps does `git bisect` need to find a bad commit among about 1,000 commits?
Question 10 of 10
What does `git bisect run` use to decide whether each commit is good or bad?
git bisect start HEAD v2.1.0
git bisect run python manage.py test billing