Tutorial 7 : Pull files from GitHub

What you will Learn:

  • Pull file from GitHub to local GIT repository (git pull)

Pull file from GitHub to local GIT repository (git pull)

 

Now we will see the reverse process viz pulling the files from GitHub to our local machine

Pull files from GitHub

See the highlighted section below

Pull files from GitHub

Click ‘Add a README

Put the cursor at the end of line 1, see below

Pull files from GitHub

Hit Enter

Add some description

Pull files from GitHub

Come to the page bottom

Pull files from GitHub

Click ‘Commit new file

Notice below that README.md file gets created. At the bottom you can see the file description

Also Check: Selenium Training Online

Pull files from GitHub

Right now we don’t have this file in our local machine

Also Read: Tutorial 4: Initialize GIT

Pull files from GitHub

Execute ‘git pull’ command

Pull files from GitHub

Now we can see the README.md file in our local

Pull files from GitHub

To see the file contents

Pull files from GitHub

 

Pull files from GitHub

Now let us click any filename link, let us click demo.html

Pull files from GitHub

On the right hand side, you can see the edit button

Pull files from GitHub

Click edit

Pull files from GitHub

Add some more code to it

Pull files from GitHub

Come to page bottom, you will see commit message text field

Pull files from GitHub

Add some message

Pull files from GitHub

Click ‘Commit changes’

Pull files from GitHub

Right now the new line is not in our local machine

Also Read: Tutorial 5: Commit files to GIT

Pull files from GitHub

Lets git pull. As you can see below, it says 1 file changed

Pull files from GitHub

The file content shows the new line in our local

Pull files from GitHub

So ‘git pull’ command basically pulls the latest changes from GitHub to our local machine!

Thank you for reading!

Also Read: Tutorial 6: Push changes to GitHub

Share On

Share on facebook
Share on twitter
Share on linkedin
Share on whatsapp
Share on tumblr
Share on email

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top

Lifetime Membership Club

LIFETIME MEMBERSHIP BIG SALE - ALL LIVE COURES JUST - 7000 RS/ 99 USD
Attend All Live courses in just 7000 rs / $99 - offer ends 1st Nov 2024