Looking for a more productive and intuitive way to revert Git commits? This video is for you.
In this video, I will demonstrate how to discard/revert Git commits in three ways, including:
1. hard reset:
2. revert
3. soft reset
Magit is one of the killer apps of Emacs, you should definitely give it a try, and you'll never look back to use the vanilla Git CLI.
Reference:
- Magit: https://magit.vc/
- git reset: https://git-scm.com/docs/git-reset
- git revert: https://git-scm.com/docs/git-revert
Timeline:
00:00 Intro
00:40 Prepare a Git repo
01:46 1. hard reset
03:08 2. revert
06:14 3. soft reset
09:13 Summary
#emacs #magit #git #productivity
1 Comments