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...
On this page of the site you can watch the video online Git delete commits and reset code base to a specific commit with a duration of hours minute second in good quality, which was uploaded by the user Susan B. 23 January 2024, share the link with friends and acquaintances, this video has already been watched 1,432 times on youtube and it was liked by 39 viewers. Enjoy your viewing!