This page has instructions to install Sourcetree, free git client for Mac OSX.
For other platforms, see:
Before you begin
You will need access to a git service, so first browse to a git service and login to create your account. Some common git services are:
- Tufts Services
- https://gitlab.tufts.edu (Exposed to the Internet)
- https://gitlab.it.tufts.edu (Only accessible from Tufts networks)
- External Cloud Services
Creating your SSH Key
-
Open a new
Terminal
window. -
Check to see if you already have a ssh key, as follows:
ls ~/.ssh/id_rsa*
-
If you already have an ssh key, skip this step. This is how to create a new ssh key:
ssh-keygen -b 2048 -t rsa -C "Some comment" The comment should uniquely describe the computer you're using, for example, "Home Macbook Pro" or whatever. It will prompt you to enter passphrase. Just keep pressing Enter.
-
Use the following command to see your public key (a bunch of random-looking characters). You will need to copy & paste this SSH Public Key into your account on the git service provider.
cat ~/.ssh/id_rsa.pub
Uploading your SSH Key
On the git service provider, go to your profile, and add your SSH Public Key. For convenience, screenshots are provided showing this on the Tufts Gitlab server:
Installing and Configuring SourceTree
- Download SourceTree from https://www.sourcetreeapp.com/
- SourceTree is only free if you create an Atlassian account. So create an account and login.
- Double-click the .zip file to create the application. Then drag SourceTree to Applications.
- Open SourceTree, Login to your Atlassian account.
- If you're only going to use Tufts services, click "Skip Setup" on the cloud services screen.
- Go to SourceTree > Preferences.
- Enter Full Name, Email Address, and Project Folder.