Skip to content

Instantly share code, notes, and snippets.

@efremidze
Created October 26, 2023 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save efremidze/a13ffc471313928256f23e0573b93ccb to your computer and use it in GitHub Desktop.
Save efremidze/a13ffc471313928256f23e0573b93ccb to your computer and use it in GitHub Desktop.
Authenticating SourceTree with GitHub
To authenticate SourceTree with GitHub, follow the steps below. This will allow you to access and manage your GitHub repositories through SourceTree seamlessly.
1. Generate Personal Access Token in GitHub:
- Login to your GitHub account.
- Select Settings from the dropdown.
- In the left sidebar, click on Developer settings.
- Click on Personal access tokens in the left sidebar under Developer settings.
- Fill out the form by giving your token a descriptive name and selecting the necessary scopes (permissions). For using SourceTree, it's recommended to grant the repo scope at a minimum.
- Click the Generate token button at the bottom.
- Once generated, make sure to copy your new Personal Access Token to a secure location. You won’t be able to see it again.
2. Set Authentication Type in SourceTree:
- Open SourceTree.
- In the opened window, navigate to the Accounts tab.
- Select GitHub from the list of hosting services. If it isn't already added, add it.
- Set the Auth Type to Basic.
3. Enter Credentials:
- In the Username field, enter your GitHub username.
- In the Password field, paste the Personal Access Token you generated in step 1.
- Set the connection protocol to HTTPS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment