reset
↔ to remove files from Staging (no modify/delete)
git reset _SHA
to reset
to previous Commit with _SHA
UID in Mixed Mode
--hard
flag to reset
to discard all Diff
git reset HEAD~
to undo last Commit & keep Diff
git reset --soft HEAD~1
to undo Commit & keep Diff in Staging index
git reset --soft HEAD
to undo (& delete) last Commit & keep Diff. 💡 best to just click the undo last commit option in VSC Source Control Panel
References
git reset _SHA
↔ toreset
to previous Commit with_SHA
UID in Mixed Mode