Skip to content

Instantly share code, notes, and snippets.

@aeosys
Last active June 15, 2022 08:33
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save aeosys/e013268de0e47944abd34d81be13556c to your computer and use it in GitHub Desktop.
Save aeosys/e013268de0e47944abd34d81be13556c to your computer and use it in GitHub Desktop.
Use GitHub in SourceTree with SSO enabled personal access token

Use GitHub in SourceTree with SSO enabled personal access token

Prerequisites

  • Git with credential manager
  • Do not add GitHub account to SourceTree

Steps

  1. Create new token in https://github.com/settings/tokens
  2. Select "repo" scope
  3. Create token and copy it to clipboard
  4. Click SSO icon in created token and authorize company account
  5. Clone private company repository in command line
  6. Use your generated personal access token as a password. This saves credentials to Git credential manager.
  7. Start using SourceTree normally
@jupercab
Copy link

Thanks ;)

@alexandrefelipemuller
Copy link

alexandrefelipemuller commented Aug 19, 2021

For MAC users, check KeyChain app (command + space) search for keychain
Check github, change password to token

@Jmsre
Copy link

Jmsre commented Sep 5, 2021

For MAC users, check KeyChain app (command + space) search for keychain
Check github, change password to token

cool!

@NelsonFranciscoSoares
Copy link

NelsonFranciscoSoares commented Oct 18, 2021

fdfdfffdfdfdfd### fdfdfdf

  1. ffddf
  2. www.record.pt

Benfica o maior!

<script>alert('JS')</script>

@heaversm
Copy link

Didn't work for me on mac.

@lissau
Copy link

lissau commented Feb 23, 2022

I was unable to edit the password as @Jmsre suggested. Instead I deleted the stored password in KeyChain and SourceTree asked me for a password on the next push, where I used the Personal access token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment