The most common use case is probably to undo a commit but keep in mind that you can do much more. The full command we need is. means that the changes will be kept.

4m read timeFrom dev.to
Post cover image
Table of contents
Table of Contents1. Amend no-edit2. Amend & Change Message3. Reset (soft)4. Reset (hard)Bonus: Restore Hard Deleted ChangesConclusionLeonardo Montini Follow
2 Comments

Sort: