# How to Use Sourcetree with GitHub

> To link GitHub with Sourcetree, go to the Remote section, open the Accounts tab, and click Add an account. Select GitHub as the hosting service and HTTPS as the protocol. Refresh the OAuth token to paste your GitHub token, then click OK to save the hosting account.

Canonical: https://livedemo.ai/tutorials/how-to-use-sourcetree-with-github/
Apps: GitHub, Sourcetree
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a525dab56e05a00fff7d6/preview?step=1

## Steps

1. Go to the 'Remote' section of your Sourcetree.
2. Go to the Accounts tab and click '+ Add an account'.
3. Choose 'GitHub' as your hosting service.
4. Choose 'HTTPS' as your preferred protocol.
5. Click 'Refresh OAuth Token' to paste your GitHub token.
6. Click 'OK' to save the hosting account.
7. Sourcetree is now linked to your GitHub account.
