Getting Started with Sourcetree

Installation

Authentication

In the menu bar, click Tools  Options. In the Options dialog, go to the Authentication page.

sourcetree auth add
1 Click Add to open the Edit Hosting Account dialog.
2 Choose "GitHub" for Hosting Service.
3 Choose "HTTPS" for Preferred Protocal.
4 Choose "OAuth" for Authentication.
5 Click Refresh OAuth Token. The login page for GitHub.com will open in your browser. Log into your account on GitHub, and return to Sourcetree.
6 If the login is successful, you will see the message "Authentication OK" here.
7 Click OK to close the dialog.

sourcetree auth default
1 In the Accounts list, click on your account name to expand it, and then click Set as default. When asked to confirm, click on Yes.

Cloning a Repository

sourcetree remote
1 In the toolbar, click Remote.
2 You should see your GitHub account name on the left, and a list of remote repositories on GitHub you can access on the right. Make sure that the Show Organization Repos checkbox is checked, and use the search box to help locate your repository.
3 Once you find the repository you want to clone, click Clone next to its name.

sourcetree clone
1 The address to the remote repository should be filled automatically.
2 Click Browse to select the directory on your ccomputer where you want to save the repository.
3 Give the repository a name to help identify it. By default, this is the same as the name of the remote repository.
4 Click Clone to start cloning the repository.