Andrew Ly

Okay, so you made a mistaken commit and you want to go back in time. Fortunately using this code in the terminal has helped:

git reset --hard HEAD~1

But then you’ve taken you too far and you’ve lost precious commits! All of a sudden you’re back to the very beginning…

--

--

Andrew Ly

Andrew Ly

Founder of Neo Typewriter. He is a published author, podcast host, digital marketer, and full-stack web developer. Read more at: www.andrewjly.com