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.
Table of contents
Table of Contents1. Amend no-edit2. Amend & Change Message3. Reset (soft)4. Reset (hard)Bonus: Restore Hard Deleted ChangesConclusionLeonardo Montini Follow2 Comments
Sort: