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:

Make a copy of a remote repository so that you can start work on it on your local machine.

Now, let's assume the role of another member in the team and clone the existing remote repository onto another directory named "tutorial 2".

Windows

Double-click anywhere on the desktop and click "Git Clone" in the right-click menu.

Click Git Clone

Enter the remote repository URL that we want to clone and the name of the directory to be saved. Click "OK".

In this example, we are cloning the remote repository that was created in the previous page but with a different directory name ("tutorial 2").

Cloning will begin in the next screen. When that is completed, click "Close" to finish.

Clone succeeded

The directory "tutorial 2" has now been created.

Directory tutorial2 was created

To verify that the cloning has been executed successfully, check that the following line is contained within sample.txt of the newly cloned directory "tutorial 2".

Git commands even a monkey can understand

Mac

In the upper left corner of the SourceTree bookmarks window, click "Add Repository". Alternatively, you can also select “File” > "New/Clone" from the menu bar.

Start SourceTree

Select the "Clone Repository" above. Now enter the remote repository URL and the name of the new directory to be saved. Click "Create".

In this example, we are cloning the remote repository that was created in the previous page but with a different directory name ("tutorial 2").

Clone into the directory named "tutorial2".

The newly cloned repository is now added to the bookmarks list.

Added to the bookmark list.

To verify that the cloning has been executed successfully, check that the following line is contained within sample.txt of the newly cloned "tutorial 2" directory.

Git commands even a monkey can understand

Command Line

Use the "clone" command to copy a remote repository as shown in the example below. Substitute with the remote repository URL and with the new directory name in which the remote contents will be placed.

$ git clone

By executing the following command, the remote repository will be copied into the directory named tutorial2.

$ git clone https://monkey.backlogtool.com/git/BLGGIT/tutorial.git tutorial2 Cloning into 'tutorial2'... Username: Password: remote: Counting objects: 3, done. remote: Total 3 (delta 0), reused 0 (delta 0) Unpacking objects: 100% (3/3), done.

To verify that the cloning has been executed successfully, check that the following line is contained within sample.txt of the newly cloned "tutorial 2" directory.

Git commands even a monkey can understand