2 comandos para deshacer el último commit en Git:

A) Deshacer el último commit (sin haber hecho push)

git reset --soft HEAD~1

B) Deshacer el último commit (habiendo hecho ya un push)

git revert HEAD

Agradezco tu comentario 🤘