Git In-depth

Git In-depth Fixing Git Mistakes Exercise

Topics:
Check out a free preview of the full Git In-depth course:
The "Fixing Git Mistakes Exercise" Lesson is part of the full, Git In-depth course featured in this preview video. Here's what you'd learn in this lesson:

In this exercise, students practice reverting a file and cleaning a repository.

Get Unlimited Access Now

Transcript from the "Fixing Git Mistakes Exercise" Lesson

[00:00:00]
>> Nina Zakharenko: So summaries, some common ways of undoing changes, we can check out, reset, revert. Always revert for a shared repository, don't change history.
>> Nina Zakharenko: If you need to revert the revert, for example, if you need to push that original commit again, it's not gonna do anything. That commit exists already in history.

[00:00:25] A good strategy is to cherry peck your changes. And I'm gonna talk a little bit more about how to do that in the next section.
>> Nina Zakharenko: Now, time for exercise six, how do we fix mistakes?