Do these commits still exist in the repo?

9 659
20.2
Published on 20 Apr 2026, 13:00
A quick Git brain teaser. We start with five commits on main, then run git reset --hard HEAD~3. Now, the log shows only two commits as expected. Afterwards, you realize that you actually need them. The question: is it possible to get them back? If so, how? Watch the video and share your answer.


Subscribe to Google for Developers → goo.gle/developers

Speakers: Rody Davis
autotechmusickids