Skip to main content
  1. Learn
  2. Software Development
  3. Guides
  4. Git tutorial
  5. How to use Git
  6. How to use Git on Mac
  7. Copy a remote repository
GuidesSoftware DevelopmentBacklog
Git

Project and code management together.

Copy a remote repository

For this step in our tutorial, imagine you’re another team member and want to clone the remote repository we created and pushed to in the previous steps onto another directory so that you can work on it on your local machine. We’ll call this directory tutorial2.

Click the “New…” button in the upper-left corner of the Sourcetree bookmarks window. Alternatively, you can also select “File” > “New…” from the menu bar.

Start SourceTree

Select “Clone Repository,” then enter the remote repository URL, the destination path, and the new directory's name, and click “Clone.”

Clone into the directory named tutorial2

The newly cloned repository will be added to the bookmarks list.

Added to the bookmark list.

To verify that Git executed the cloning successfully, look for the following line within sample.txt of the newly cloned directory tutorial2:

Anyone can learn Git with this tutorial and Backlog

Subscribe to our newsletter

Learn with Nulab to bring your best ideas to life