Reset a git repository to a previous commit, deleting all commits made since.
This is not considered git-best-practice as it “rewrites history” by deleting old commits and this can cause issues for collaborators who have pulled the commits you are deleting.
That being said, there may be edge cases where this is an appropriate technique.
Only apply this technique if you are sure that deleting commits is the outcome you want
For other less destructive ways to revert git history, check out this thread: https://stackoverflow.com/questions/1...
=== NOTES ===
https://codewithsusan.com/notes/git-d...