Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • K knowledge-base
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
Collapse sidebar
  • public-wikis
  • knowledge-base
  • Wiki
  • Sourcetree git client for Mac OSX

Last edited by Edward Harvey Jun 01, 2018
Page history

Sourcetree git client for Mac OSX

This page has instructions to install Sourcetree, free git client for Mac OSX.

For other platforms, see:

  • Sourcetree git client for Windows

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
    • https://github.com
    • https://gitlab.com
    • https://bitbucket.org
    • https://www.codebasehq.com

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:

Gitlab Profile Menu

Paste SSH Public Key

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. Drag 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. Skip Cloud Account Setup
  • Go to SourceTree > Preferences. Sourcetree Preferences
  • Enter Full Name, Email Address, and Project Folder. Name and Stuff

How to Clone your First Project

  • Copy the project git URL Copy Git URL

  • Click "+ New Repository" in SourceTree New Repository in Sourcetree

  • Paste the URL. It should say "This is a Git repository" Paste URL

Clone repository
  • Sourcetree git client for Mac OSX
  • Sourcetree git client for Windows
  • Home