filmov
tv
The right way to undo your last git commit (git reset)
Показать описание
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
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