Undo last commit discard changes

git reset --hard HEAD~1
Kategory
git history
Description
Moves HEAD back one commit and permanently discards all changes from that commit including the working tree.
Kontributor
iarc13
Upvotes
▲ 0