Git delete commits and reset code base to a specific commit

preview_player
Показать описание
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

=== NOTES ===
Рекомендации по теме
Комментарии
Автор

Concise and to the point, don’t understand why this doesn’t have more views.

tecnicraze