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 ...
papidev.hashnode.dev1 min read
Ghost
Self-employed software developer, artist, writer.
Sometimes I need to use this at work, I've made a fair share of accidental commits.