Return to Video

Cloning and Exploring The Repo Solution - How to Use Git and GitHub

  • 0:00 - 0:05
    To find the commit which reverted the controls, first I'll type git log.
  • 0:05 - 0:09
    Now, I don't see a commit with the message revert controls yet, so
  • 0:09 - 0:11
    I'll press the down arrow and scroll down.
  • 0:11 - 0:12
    And here it is.
  • 0:12 - 0:15
    Since I found it, I'll press Q to quit out of git log.
  • 0:15 - 0:19
    So this is the commit ID of the commit that reverted the controls.
  • 0:19 - 0:22
    It starts with b067.
  • 0:22 - 0:25
    Now I want to see how many lines were introduced in this commit.
  • 0:25 - 0:28
    Remember that the changes introduced by this commit will be
  • 0:28 - 0:31
    different from the previous commit.
  • 0:31 - 0:36
    So, I can copy this commit ID, type git diff and
  • 0:36 - 0:41
    paste it, and then I'll copy and paste this commit ID.
  • 0:41 - 0:43
    Now I can just count up the lines that have changed.
  • 0:43 - 0:46
    So far, there's two insertions and two deletions.
  • 0:46 - 0:48
    We'll scroll down.
  • 0:48 - 0:50
    Another insertion and deletion, so that's three each.
  • 0:51 - 0:54
    Another, so four each.
  • 0:54 - 0:56
    And I'll press Q to quit git diff.
  • 0:56 - 1:01
    So, the correct commit ID started with b067 and
  • 1:01 - 1:04
    there were four lines added and four lines deleted by that commit.
Title:
Cloning and Exploring The Repo Solution - How to Use Git and GitHub
Description:

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

English subtitles

Revisions Compare revisions