Backlog uses cookies to deliver our services. By visiting our website, you agree to the use of cookies as described in our Cookie Policy.

Select your PC environment:

In this section, we are going to pull the latest change from the remote repository to our local repository (tutorial directory).

Windows

Now that our remote repository is up to date with the changes from "tutorial2", let's pull the change and synchronize our initial repository directory, "tutorial".

Working in tutorial.

To execute a "pull", right-click on the tutorial directory and select pull from the right-click menu.

Click pull from the right-click menu

Working in tutorial.

Click "OK".

Click OK button

Working in tutorial.

Pull will be in progress. Once complete, click "Close" to finish.

When the next screen is displayed, the pull will begin.

Working in tutorial.

Click TortoiseGit > Diplay Log from the right-click menu. You will now notice that master has moved forward to the same level as origin/master. This means that our tutorial local repository is now up to date with the latest changes from the remote repository.

The origin/master have advanced to the same position.

Mac

Now that our remote repository is up to date with the changes from "tutorial2", let's pull the change and synchronize our initial repository directory, "tutorial".

Working in tutorial.

To execute a "pull", click "Pull" on the toolbar.

Click Pull button on the toolbar

Working in tutorial.

In the next screen, you do not have to change anything, just proceed with clicking "OK".

Click OK button

Working in tutorial.

You will now notice that master has moved forward to the same level as origin/master. This means that our tutorial local repository is now up to date with the latest changes from the remote repository.

The origin/master have advanced to the same position.

Command Line

Now that our remote repository is up to date with the changes from "tutorial2", let's pull the change and synchronize our initial repository directory, "tutorial".

To execute a pull, use the "pull" command. If you do not include the repository name, the pull will be executed on the repository under the alias of "origin".

$ git pull ...

Working in tutorial.

Execute the following command.

$ git pull origin master
Username:
Password:
From https://monkey.backlogtool.com/git/BLGGIT/tutorial.git
* branch master -> FETCH_HEAD
Updating ac56e47..3da09c1
Fast-forward
sample.txt | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

Working in tutorial.

Let's verify that the history is updated with the "log" command.

$ git log
commit 3da09c1134a41f2bee854a413916e4ebcae7318d
Author: eguchi
Date: Thu Jul 12 18:02:45 2012 +0900

append description of the add command

commit ac56e474afbbe1eab9ebce5b3ab48ac4c73ad60e
Author: eguchi
Date: Thu Jul 12 18:00:21 2012 +0900

    first commit

Looks good, the new commit that we have added in "tutorial2" is now listed under this repository's history log.

Working in tutorial.

Let's open the file sample.txt and check the content.

Git commands even a monkey can understand
add: Register a change in an index

We should see the newly added content "add: Register a change in an index"