SAGARFIVE

1. Introduction

2. Git Basics

3.  Git Terminology

4.  Git Branching

5.  Git - Github

6.  Git Add (Git staging)

7.  Git Commit

8.  Github Advanced

9.  Git Remote

9.1 Git Pull

  • The term pull is used to receive data from GitHub.
  • It fetches and merges changes from the remote server to your working directory. The git pull command is used to pull a repository.

Task/Demo : Pull the latest changes made in remote repository

(i) We cloned a repository , and listed files now we can see the list of file

(ii) Now moving to github website

(iii) Adding a file (Realtime in industry more than 1 developer will be contributors to repos, so do changes frequently , here i am adding a file using github.com, treat it as a another developer added this file)

(iv) Adding the file info and commit changes

(v) Now the file added at github.com repository

(vi) At git bash , if we run the ls , we unable to see the updated file, to get the latest changes from the repository , we need to run the git pull, then we can see the file added,

Once after pull, if we list, we can see the latest added file in git bash(local repository in computer)