Skip to main content
Jessica Temporal

Jessica Temporal

Canada

I’m a co-founder and co-host of the first Brazilian podcast about data science in Portuguese called Pizza de Dados. Creator of GitFichas, collection of Git study cards and author of “The Big Git Microbook”. Also love to knit and picking up new skills on YouTube, right now learning to play the keyboard and how to do digital drawings.

Links. Selecting an option opens the link in a new tab.

Community Contributions

How to Undo Commits in Git

Made a mess in Git? You can undo almost anything, and I'll show you how. In this video: git reset and its three flavors (soft/default/hard) · 1:30 reset vs revert, and which to use when · 3:20 git reflog to recover "lost" commits · 4:30 git commit --amend comes in around 5:20 🔗 Read the full post: https://jtemporal.com/undoing-the-last-commits-using-git-reset/ 📨 Subscribe for one of these every month: https://www.youtube.com/@jesstemporal ⏱️ Chapters: 0:00 The problem: undoing commits 0:22 One question, three commands 0:40 The mental model: commits and HEAD 1:20 Have you pushed it yet? 1:40 reset --soft (keep it staged) 2:10 reset default (keep it unstaged) 2:35 reset --hard (throw it away) 3:20 reset vs revert 3:40 git revert (safe on shared branches) 4:30 git reflog: recover lost work 5:20 Bonus: git commit --amend 6:00 Cheat sheet recap 6:40 Wrap up

Video/Podcast / 07-30-2026

Related Stars