Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A developer moved a local branch reference and can no longer see a recent commit in ordinary log output. What is the narrowest first recovery step?" on CodeWiki (https://codewiki.com/practice/mcq/foundations/checkpoint-3/checkpoint-3-git-recovery/).
Context (verbatim from the page):
"""
A developer moved a local branch reference and can no longer see a recent commit in ordinary log output. What is the narrowest first recovery step?
Inspect `git reflog`, verify the old object, and create a recovery reference to it.
Run garbage collection immediately so unreachable objects are easier to find.
Rebase every shared branch onto the missing commit hash.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in CS foundations. Where you are unsure, say so.