Git Pull

The git pull command is one which is used to update our local system repository with respect to our remote repository.

Suppose you have already cloned the repository to your local system and there are some new changes in the remote repository, so in order to update our local system repository with the new changes we need to take the pull of our remote repository.

To take the pull just simply execute

git pull origin

For the demo purpose we have added a new file in our remote repository with name demo.txt

But if we do ls in our local repository then there is only 1 file

So to update our local repository we will use git pull

As it shows us that 1 new file with name demo.txt has been updated in the repository, now if we will do ls command it will show us both the files.

Subscribe Now