Return to Video

Making a Pull Request Solution - How to Use Git and GitHub

  • 0:00 - 0:02
    All right,
    let's start from the beginning.
  • 0:02 - 0:05
    With this action,
    we edit and save a README.
  • 0:05 - 0:08
    This change will only affect
    the working directory.
  • 0:08 - 0:10
    All right, what about this one,
    git add README?
  • 0:10 - 0:12
    This will take the change from
    the working directory and
  • 0:12 - 0:14
    add it to the staging area.
  • 0:14 - 0:16
    So, the staging area will be changed.
  • 0:16 - 0:17
    Then we have git commit.
  • 0:17 - 0:21
    Running git commit will create a commit
    with the changes from the staging area
  • 0:21 - 0:24
    and update the master branch.
  • 0:24 - 0:24
    Okay.
  • 0:24 - 0:27
    So, what about git pull origin master?
  • 0:27 - 0:30
    This will take the commit currently
    in the master branch on GitHub and
  • 0:30 - 0:35
    pull it into the local branch and merge
    it into what's currently on master.
  • 0:35 - 0:38
    So, the local master is
    the only thing that changes.
  • 0:38 - 0:41
    Now we have git push origin master.
  • 0:41 - 0:45
    This will take what's in the local
    version and push it to the remote.
  • 0:45 - 0:48
    So this operation just
    changes the remote.
  • 0:48 - 0:49
    Okay, down to the last one.
  • 0:49 - 0:53
    If we have a pull request to merge
    the alt branch into master, and
  • 0:53 - 0:56
    that pull request gets accepted and
    merged in,
  • 0:56 - 0:59
    then the alt branch will
    get merged with master.
  • 0:59 - 1:02
    So the GitHub master branch is
    the only thing that will get updated.
Tytuł:
Making a Pull Request Solution - How to Use Git and GitHub
Opis:

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

English subtitles

Revisions Compare revisions