SourceTree is a free GUI client for Git.
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 connect to GitHub. In the dialog for connecting to GitHub,
HTTPS
as the protocolOAuth
as the authentication methodRefresh OAuth Token
button so that SourceTree can obtain youn access token from GitHub. This usually opens up a Browser for you to sign in to GitHub. After you sign in to GitHub successfully, the installation can continue.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.If you did not connect your SourceTree to your GitHub account during the installation, or your current SourceTree-GitHub connection is not working, given below are how you can rectify it.
Option 1:
Tools
-> Options
-> Authentication
Add
, to add an authentication method.GitHub
HTTPS
OAuth
Refresh OAuth token
button.Option 2:
repo
option.Tools
-> Options
-> Authentication
Add
, to add an authentication method.GitHub
HTTPS
Personal Access Token
(different from option 1 above)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 3:
Web Credentials
or Windows Credentials
categories,Try this guide from Medium: Connecting Mac Sourcetree with your GitHub account.
If the above doesn't work, try this guide (also from Medium): Using Sourcetree to connect to GitHub without password.
It gives two methods. Recommended to try method 2 first.