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

How to connect to GitLab CE

i can't connect to my gitlab CE with sourcetree,
how to configure it??

Thanks before,

[SourceTree] - Can't Connect.png

4 answers

1 accepted

4 votes
Answer accepted
Manju Atlassian Team Oct 15, 2018

You will need to generate a personal access token on your gitlab server and use that here. You can click on the link in "How do I create a personal access token?" and follow the instructions. 

ok, I allready have personal access token, now how to use it on sourcetree?

Mike Corsaro Atlassian Team Oct 16, 2018

Just click the "Refresh personal access token" and you should be able to enter your username, and the token as the password.

Like davidkingvoyager likes this

Oh OK, it works. Thanks all. :)

I have been turning crazy, and finnally do it. So, I will try to explain it in details.


1. At GitLab create a personal token.

2. At SourceTree, Add a new account, then, select GitLab, and Preferred Protocol SHH.

3. Click Refresh Personal Access Token, and enter the username and in the field of the pasword enter the token that we generated at GitLab.


This was the trick.


Thanks to all for helping.

worked for me thanks a lot. but why didnt work by my password ,i know my password is correct. but this token worked. 

Manju Atlassian Team Feb 07, 2019

If I'm not wrong, gitlab doesn't allow REST operations over basic auth password. You will need the Private token for this to work. 

ОК. Спасибо большое!

У меня также заработало (Добавил токен, скопировал его, добавил в SourceTree пользователя и дал в пароле скопированный токен)

0 votes

Hi all, 

Just wanted to update this thread to let you know there is now a native automation trigger for GitLab with Jira Cloud. We are running a webinar soon to walk through how it works and show some use cases in how to automate from Gitlab to Jira. Feel free to register here:


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,077 views 5 13
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