GIT : RESET --hard
If you messed up your code and you want to revert the changes you made, you can use
git reset --hard [commit]
where [commit] is the "commit hash" you want to go back to.
The files of the working directory and the staging area will be reset to ...
·1 min read·papidev.hashnode.devRead the article
Ghost
Sometimes I need to use this at work, I've made a fair share of accidental commits.