Fetches changes from a remote repository and incorporates them into the current branch of a Git repository.
git pull
is used whenever changes from a remote repository need to be fetched and incorporated into the local repository. Internally git pull
first performs a git fetch
to get the remote branches updated and then a git merge
to incorporate the changes into the current branch.