

The following pull command downloads / fetches the content of the remote repository.

#Git gui tools add windows#
Similarly, the local folder on Windows system should show the newly added images as well as the updated text file. If you run this command again on Git Bash: So, this is how our online repo on Github looks: For explaining, I also changed the content of demo1.txt file. How about making changes in an existing repo/branch in the remote server and then using the pull command.įor example, we added two more image files after performing above operation.
#Git gui tools add how to#
In the above section, we learned how to create an online repo and pulling its master branch in the local repo by the pull command of Git. How about using Pull command for existing repositories? This is followed by execution of git merge by pull command. The reason is pull command is the combination of fetch and commit commands.Īs we ran $ git pull in above section, the pull command executed git fetch and downloaded the content from the remote branch. This is what our demo folder “pull-tst” on Windows system contains after running pull command:īack to our question, why we used “fetch” and “commit” terms while talking about pull command. Similarly, you may go to the local active folder where you started Git Bash and see the local repo. You can see, it is showing all four files as in our remote repository in above graphic. One is for the git pull command and the other displays the files in the master branch by using $ ls command. In the graphic, you can see two commands’ output. The Git Bash should display messages like this:
#Git gui tools add download#
This command should download all files from the remote repo to the local. (For learning more about how to open Git Bash and set path, visit this tutorial)Īfter adding the origin, let us run the git pull command for downloading the remote repo: Use this command to add the origin to our newly created remote repository:Ĭhange the URL if you are using some other repo. I will explain this after completing the pulling command below.įor downloading the remote repo content, run the Git pull command as follows. While our topic is Git pull, why I used two other command names in above heading? This is because the pull Git command is the combination of fetch and merge commands. Our pull operation shows some “substance” after we download in our local repository, I have added a few files in the master branch as shown below.
