The right way to undo your last git commit (git reset)

preview_player
Показать описание
Undo commit command:
git reset --soft HEAD~1

Undo commit command and unstage changes:
git reset --mixed HEAD~1

Undo commit command, unstage changes and undo changes to files:
git reset --hard HEAD~1

#Git #GitReset #Programming

Рекомендации по теме