Return to Video

Checking Out Old Versions Solution - How to Use Git and GitHub

  • 0:00 - 0:01
    To sum this exercise.
  • 0:01 - 0:05
    First, I'll want to check out the most recent commit again using the commit ID
  • 0:05 - 0:06
    that I noted down.
  • 0:06 - 0:09
    This is in the instructor's notes in case you forgot it.
  • 0:09 - 0:10
    Then I'll do a git log.
  • 0:10 - 0:13
    And I want to check out each of these commits one at a time until I
  • 0:13 - 0:15
    find the one with the bug.
  • 0:15 - 0:16
    If I do that,
  • 0:16 - 0:21
    I'll find that this commit has the bug and the previous commit does not.
  • 0:21 - 0:25
    That means that the commit starting with 25ed is the one that
  • 0:25 - 0:29
    introduced the bug and this commit ID is the answer to the quiz.
  • 0:29 - 0:31
    If we want to know exactly how the bug got introduced,
  • 0:31 - 0:34
    we can use git diff to compare the commits.
  • 0:34 - 0:36
    I'll do that now so git diff.
  • 0:36 - 0:37
    Then the first commit ID.
  • 0:37 - 0:39
    Then the second.
  • 0:39 - 0:44
    As you can see in addition to some other changes, this commit removed the line,
  • 0:44 - 0:46
    delayBeforeBullet equals 10.
  • 0:46 - 0:50
    It's not surprising that this removal would cause the problem we saw.
  • 0:50 - 0:52
    My guess is that the line was removed accidentally,
  • 0:52 - 0:54
    while making these other changes
Title:
Checking Out Old Versions Solution - How to Use Git and GitHub
Description:

more » « less
Video Language:
English
Team:
Udacity
Project:
UD775 - How to Use Git and GitHub
Duration:
0:55

English subtitles

Revisions Compare revisions