How To Pull Code From A Repository?
Table Of Contents:
- What Is GIT Pull?
- Examples Of GIT Pull.
(1) What Is GIT Pull ?
- The
"git pull"the command is used to fetch and download content from a remote repository and immediately update the local repository to match that content. - “git pull” is the combination of two commands “git fetch” and “git merge”.
git fetchwhich downloads content from the specified remote repository.git mergeis executed to merge the remote content refs and heads into a new local merge commit.
(2) Examples Of GIT Pull ?
Syntax:
git pull <Remote URL> Example-1: Using URL
git pull https://github.com/Subrat/Project.git Example-2: Using origin
git pull origin Example-3: Pulling A Specific Branch
git pull origin branch1 
