Installing Sourcetree
Sourcetree is a graphical application for git, which makes it easy to keep track of changes to your work and to move your work between GitHub and your own computer. It is available for Mac and for Windows.
This article describes how to download, install, and configure Sourcetree.
Download and install SourceTree
Download SourceTree from their website.
Mac version
If you download the Mac version:
- You should get a file called something like
Sourcetree_2.7.1d.zip
. - Double-click the file, which should unpack it, leaving a file called Sourcetree.
- Drag the file to your computer’s
Applications
folder.
Windows version
If you download the Windows version:
- You should get a file called
SourceTreeSetup-2.4.8.0.exe
. - Double-click the file, which should open an installer. Follow the instructions to install.
Note: I don’t have Windows, so I wasn’t able to verify that these instructions work. Please let me know if they don’t.
Connect Atlassian account to Sourcetree
- Open Sourcetree. You should see a dialog that will walk you through some configuration.
- On the first screen:
- Click the box to agree to the Atlassian Customer Agreement (after reading it, of course!).
- Decide whether you want to improve Sourcetree by sending data about your usage.
- Click the
Continue
button.
- Create an Atlassian account (or use an existing one).
- Unfortunately, Atlassian makes you create an account to use Sourcetree.
- If you don’t have an account (most likely scenario), click
Go to My Atlassian
and create an account. Atlassian will send you a confirmation email. Click on the link in the email to verify your account. Don’t worry about filling out the information on the website. - Once you have an account, you should be able to continue with the setup.
- In the next pane (
Connect an Account
), click theSkip Setup
button.
Configure Sourcetree
- Once Sourcetree is running, open the Preferences.
- In the
General
tab:- make sure that the
Allow Sourcetree to modify...
box is checked. -
Underneath that checkbox, put your full name and the email address you use for Github.
Warning: This name and email address may become public, on GitHub, so make sure that you choose a name & email address that you’re okay making public.
- make sure that the
- In the
Accounts
tab:- Click the
Add...
button. - For
Host
, chooseGitHub
. - For
Auth Type
, chooseOAuth
. - For
Protocol
, chooseHTTPS
. - Click the
Connect Account
button. - In the pop-up, log in to your GitHub account.
- Click
Save
.
- Click the
- Close the Preferences pane.
You’re ready to start using Sourcetree for our class! Check out the Assignment HOWTO to get started.