From the course: Complete Guide to Git
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Fetch changes from a remote - Git Tutorial
From the course: Complete Guide to Git
Fetch changes from a remote
- In this movie, we will learn how to fetch changes from the remote repository. The Git command we'll use is Git Fetch, followed by the name of the remote. For us, that'll be Git Fetch Origin. And if we don't specify the remote, then Origin is the default unless a different upstream remote is configured. So we can just use Git Fetch Fetch will retrieve all branches and the commits that go with them, and it will update all remote tracking branches so that they point to the correct commits. We could fetch changes from our big Star collectibles directory, but we know that it already has everything that's contained on the remote. Instead, let's use this cloned version of the repository, which I've called lynda_version. We'll use this repository throughout this chapter to simulate what it's like working with a collaborator. These directories are two separate Git repositories. Normally there's not a reason to have a duplicate of a repository, but let's pretend that this directory is on a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Working with a remote2m 44s
-
(Locked)
Push changes to a remote5m 10s
-
(Locked)
Fetch changes from a remote4m 23s
-
(Locked)
Merge in fetched changes2m 44s
-
(Locked)
Work with new remote branches5m 54s
-
(Locked)
Push to an updated remote branch2m 50s
-
(Locked)
Delete a remote branch4m 14s
-
(Locked)
Prune stale branches4m 12s
-
(Locked)
Collaboration workflow5m 58s
-
(Locked)
Collaborating on open-source projects2m 57s
-
(Locked)
-
-
-
-
-
-