Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SourceTree Mac and Gitlab CE

marek_bakalarczuk September 7, 2020

Is there any possibility to connect ST on Mac with Gitlab CE account?

I tried everything, but no luck

1 answer

0 votes
Vladimir Jucov September 8, 2020

Yes, you can. 

1) Go to SourceTree Preferences ->  Accounts
2) Press Add... button
3) Fill all fields BUT in the "Password" field you must to enter personal access token!

Creating a personal access token

You can create as many personal access tokens as you like from your GitLab profile.

  1. Sign in to GitLab.
  2. In the upper-right corner, click your avatar and select Settings.
  3. On the User Settings menu, select Access Tokens.
  4. Choose a name and optional expiry date for the token.
  5. Choose the desired scopes.
  6. Click the Create personal access token button.
  7. Save the personal access token somewhere safe. If you navigate away or refresh your page, and you did not save the token, you must create a new one.


marek_bakalarczuk September 8, 2020

Thanks, but when I give all credentials, still got this:

We couldn't connect to GitLab CE with your (MarekBakalarczuk) credentials. Check your username and try the password again.

Like Rafael Dutra Caldeira likes this
Vladimir Jucov September 8, 2020

Did you create access token in GitLab with all scopes? You must to use it password field. Its look like "W543dfG3zQddsd6kMq29Z"

marek_bakalarczuk September 8, 2020

Yes I did. But it look like  "sd1fafYMPBYQ5za-xfsm"

marek_bakalarczuk September 8, 2020

OK. I did token again and it has proper format. 

But still I cannot make an account. 

Maybe it is username matter? It has to be a Gitlab CE login or profile user name?

marek_bakalarczuk September 8, 2020

Or maybe I need to enable two-factor authentication?

Vladimir Jucov September 8, 2020

username must be a Gitlab CE login

in my Gitlab i has no two-factor authentication

marek_bakalarczuk September 8, 2020

It is not working either. Thanks anyway.

alex January 12, 2023

It was not working for me either. However: After waiting a couple of minutes after creating the access token, I tried again. This time, when I clicked "Save" I pressed it three times in rapid succession (originally, when I clicked it, nothing happened.) Then... it worked.

I'm not sure if rapid clicking made it work or if I just had to wait for GitLab CE to propagate the access token.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events