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 Windows

Last edited by Edward Ned Harvey Jun 01, 2018
Page history

Sourcetree git client for Windows

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

For other platforms, see:

  • Sourcetree git client for Mac OSX

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

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.
  • Install Git. Do not install Mercurial. Install Git Not Mercurial
  • When prompted if you already have an ssh key, click No. No SSH Key Already
  • Tools > Create or Import SSH Key Tools Create or Import SSH Key
  • RSA, 2048, click Generate. RSA 2048 Generate
  • Wiggle Mouse in box Wiggle Mouse In Box
  • Give your new key a unique name Unique Name
  • Copy Public Key Copy Public Key
  • Use a text editor, such as Notepad, to save the public key as id_rsa_public.txt id_rsa_pub.txt
  • 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
  • Save Private Key Save Private Key
  • Yes, save without a password. Yes Without Password
  • Save it as id_rsa.ppk id_rsa.ppk
  • Conversions > Export openssh key export openssh key
  • Yes, save without a password. Yes Without Password
  • Save it as id_rsa_private_openssh.txt id_rsa_private_openssh
  • Back in SourceTree, go to Tools > Options tools options
  • Enter Name, Email, OpenSSH, and id_rsa_private_openssh.txt name email openssh

Cloning Your First Repo

  • Copy the project git URL Copy Git URL
  • Click "Clone" in SourceTree clone
  • Paste URL paste url
Clone repository
  • Sourcetree git client for Mac OSX
  • Sourcetree git client for Windows
  • Home