Configure SourceTree




The latest version of SourceTree on windows has the following gitlab options as host:

  • GitLab
  • GitLab CE
  • Gitlab EE


But it does not recognize my credentials.


Thanks for sharing that, it seems that from 3.0 onwards, SourceTree supports GitLab indeed!

With Sourcetree 3.0 for both macOS and Windows we’re proud to announce support for additional remote hosting services, namely GitHub Enterprise, Microsoft Visual Studio Team Services, and GitLab (Cloud, CE, EE).

Which options did you use to enter your credentials? Perhaps someone else can share their experiences in using the SourceTree GitLab integration and help.


I finally found the issue, after several attempts between

  • OpenSSH and putty;
  • HTTPS and SSH;
  • generating new keys

I eventually noticed that for github and bitbucket the credentials are through “Oauth”, and for GitLab “Personal access token”. I had generated yesterday a toke, but hadn’t used anywhere.

Steps to add a repo from GitLab on SourceTree:

  1. On your browser, go to your account and > User settings > Personal Access Tokens (
  2. Generate and copy the token
  3. On Sourcetree,
    a) leave https as preferred protocol
    b) click on Refresh Personal Access Token
    c) type your username and use the copied token as password


Thanks so much for coming back to share the steps you followed with everyone in the forum.

With these, and the fact that SourceTree now supports GitLab, I think we can finally mark this thread as solved :wink: :rocket: :partying_face: