SourceTree is a free GUI client for Git. In this guide, we assume you are using it with a GitHub account.
Login to your Atlassian account
, you can try to skip that step. If the installer doesn't allow skipping, you can create an Atlassian account as directed.Connect an Account
. Choose to skip (we'll be connecting Sourcetree to GitHub later).Pick tools to download and install
, you will be asked to choose whether to install Git and . You can unselect Mercurial, as we will be using Git instead.No
, but you are free to set of an SSL key if you are familiar with SSL key usage.Option 1: This is the recommended option, as it caters for both basic and advanced usage.
repo
option and the workflow
option.Tools
-> Options
-> Authentication
Add
, to add an authentication method.GitHub
HTTPS
Personal Access Token
Refresh Personal Access Token
button. When prompted, enter your usual GitHub username but give the PAT (the one you created in step 1) instead of the regular password.Option 2: This option is good enough for basic usage.
Tools
-> Options
-> Authentication
Add
, to add an authentication method.GitHub
HTTPS
OAuth
Refresh OAuth token
button.Option 3:
Web Credentials
or Windows Credentials
categories,Given below are two options for connecting Sourcetree with your GitHub account. Both requires creating a Personal Access Token (PAT) at some point. When you do crete a PAT, we recommend that you tick both repo
and workflow
checkboxes.
Option 1: Try the stepts given in this YouTube guide from Nick Graham:
Caching GitHub credentials
If you are prompted to enter GitHub credentials everytime you connect to GitHub using Sourcetree, you can cache GitHub credentials by following the guide given here (recommended: use the Git Credentials Manager option, not the GitHub CLI option).