From the course: Git Essential Training
Unlock this course with a free trial
Join today to access over 24,600 courses taught by industry experts.
Pull changes from the remote repository
From the course: Git Essential Training
Pull changes from the remote repository
- [Instructor] Sometimes there will be changes on the remote repository that you want to pull to your local device. Maybe you are on a different device or maybe someone else pushed code to the remote repository. Let's see how we can pull those changes. So our starting point would be a remote repository that has newer files than our local repository. We say that the remote repository is ahead of the local one. Let's first create a situation where we actually have something to pull. If you are using a code space, make sure the one you were using is still opened up or open a new one before you take the next step. So we have the GitHub repository in the web interface. You can now click on add file, and then create new file. Call the file example 02.MD and add some text to your liking. At the top, you can now click Commit Changes. A Default Commit message is already provided, so let's leave it as it is and click on Commit changes. Now let's move back to the code space or our local…
Contents
-
-
-
-
-
-
Set up a remote repository2m 31s
-
(Locked)
Fork the course repository1m 13s
-
(Locked)
Clone the remote repository2m 30s
-
(Locked)
Create a file and stage it2m 19s
-
(Locked)
Commit a file1m 18s
-
(Locked)
Push the file to the remote repository55s
-
(Locked)
Pull changes from the remote repository1m 37s
-
(Locked)
Initialize a repository locally and sync it3m 19s
-
(Locked)
Challenge: Push your first code42s
-
(Locked)
Solution: Push your first code57s
-
-
-
-