Git delete commits and reset code base to a specific commit

Veröffentlicht am: 23 Januar 2024
auf dem Kanal: Susan B.
1,432
39

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...


Auf dieser Seite können Sie das Online-Video Git delete commits and reset code base to a specific commit mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Susan B. 23 Januar 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,432 Mal angesehen und es wurde von 39 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!