Do these commits still exist in the repo?

Google for Developers · Beginner ·💻 AI-Assisted Coding ·1h ago
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 → https://goo.gle/developers Speakers: Rody Davis
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related AI Lessons

Up next
My Design-to-Code Process with AI
Flux Academy
Watch →