Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SourceTree Mac and Gitlab CE

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

I tried everything, but no luck

1 answer

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.


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.

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

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

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?

Or maybe I need to enable two-factor authentication?

username must be a Gitlab CE login

in my Gitlab i has no two-factor authentication

It is not working either. Thanks anyway.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

7,247 views 5 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you