DEV Community

Jessica Temporal
Jessica Temporal

Posted on Originally published at jtemporal.com

Undo anything in Git: reset vs revert, explained

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)
  • reset vs revert, and which to use when
  • git reflog to recover "lost" commits
  • git commit --amend comes in around

Resources:

πŸ› οΈ Gear I use

  • Mic
  • Camera (As an Amazon Associate I earn from qualifying purchases.)

πŸ‘‹ Let's connect
Blog β€’ X/Twitter β€’ LinkedIn β€’ Bluesky

Top comments (0)