DEV Community

Discussion on: 3 ways to time travel in Git to undo destructive mistakes

Collapse
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

Came here thinking this was gonna cover generic things I already knew, but nope! I actually learned something :) That last one blew my mind:

git reset --hard HEAD@{5.minutes.ago}

I'll have to keep this in mind!