Github Oauth Sourcetree

Was having a heck of a time getting SourceTree to push to GitHub via ssh and oauth. It would just hang at pushing and never complete. I’d saved my pubkey from SourceTree into Github, so the trust relationship should have been there. Finally went into the local repo in terminal, and did a “git push”. Applications - Authorized OAuth Apps 탭을 클릭하면 현재 내가 OAuth 권한으로 로그인 했던 어플리케이션 들의 리스트가 나온다. 이 중 문제가 있는 SourcetreeForMac 의 권한을 삭제한다. 그리고 맥에서 소스트리의 설정 - 계정 탭에 들어와서 문제가 되는 GitHub 계정을 제거한다.

  1. Sourcetree For Mac; SRCTREE-6673; GitHub URL for OAuth intercepted by SourceTree.
  2. Navigating to C: Users USERNAME AppData Local Atlassian SourceTree and removing (or renaming) the passwd file. Once this file is removed, restart SourceTree and execute a fetch or something else that requires access to the repo in question. SourceTree will then prompt you for your password, rewriting the cached credentials.

Today we are deprecating a Sourcetree-specific portion of the Atlassian Account sign-in API and it will be unreachable after 16 Oct 2019.

Sourcetree github oauth not working

One year ago we shipped an all-new onboarding experience in 3.0 for both Mac and Windows powered by a Bitbucket login in your default browser. Prior to that, in early 2018, we tweaked the in-app registration process on Mac to use a new endpoint provided by the Atlassian Account team to achieve a more seamless experience. We are now migrating users away from this individual endpoint as it will allow their team to deliver a better Atlassian Account experience overall.


  1. Download and install the latest release of Sourcetree for Mac.
  2. If you are unable to do so for any reason, download an applicable 2.x release and then perform the following steps in Terminal to setup prior to launching the app:

Github Sourcetree Personal Access Token

  • run defaults write com.TorusKnot.SourceTreeNotMAS agreedToEULA2 YES
  • then defaults write com.TorusKnot.SourceTreeNotMAS EmailHash DeprecatedEndpoint2019
  • finally defaults write com.TorusKnot.SourceTreeNotMAS completedWelcomeWizardVersion 3


There is no impact to existing installations of Sourcetree for Mac.


The following Sourcetree for Mac releases will require mitigation as noted above:

Sourcetree Authentication Failed Github

  • 2.7
  • 2.7.1
  • 2.7.2
  • 2.7.3
  • 2.7.4
  • 2.7.5
  • 2.7.6

Note: The registration and Atlassian Account portion of the Welcome Wizard will no longer complete after 16 Oct 2019.

Sourcetree Github Enterprise

Brighton store utc mall. To discuss this or any other Sourcetree topic please visit Atlassian Community.