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.3 Git fetch

  • Git “fetch” Downloads commits, objects and refs from another repository.
  • It fetches branches and tags from one or more repositories.
  • It holds repositories along with the objects that are necessary to complete their histories to keep updated remote-tracking branches.
1Fetch repogit fetch< repository Url>  
2Fetch specific branchfetch <branch URL><branch name>  
3Fetch all branchesgit fetch -all  
4Get latest changes /syncgit fetch origin