From the course: Git: Branches, Merges, and Remotes

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Fetch changes from a remote repository

Fetch changes from a remote repository

From the course: Git: Branches, Merges, and Remotes

Start my 1-month free trial

Fetch changes from a remote repository

- [Instructor] In the previous movie, we made changes to a local repository and then pushed them up to the remote repository. Now we need to learn how to fetch those changes from the remote repository. If you remember, we have two different repositories on our local computer. explore_california is our main repository. We can keep it as ours. lynda_version is a separate repository that is going to be used to simulate working with a collaborator. You can imagine these on two different computers even though they're on our same computer. - -oneline - 5 master will show us the changes in the master branch, And that same change then has been pushed up. We can see it in the origin master as well. Okay, now let's change into the lynda_version directory, so cd ../lynda_version. Now let's take a look at her log for the master branch. It has the commit that came right before it. Let's go up and let's add origin/master, and you'll see the same thing. In fact, it tells us here. Both master and…

Contents