Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Unable to add my Gitalb account in Sourcetree

Hi have a Gitlab enterprise account and I am able to login to it on the browser. When I am trying to add the same account into my sourcetree app on Mac it throws an error 

"We couldn't connect to GitLab Enterprise with your (vinay.kolla) credentials. Check your username and try the password again." 

1 answer

0 votes
Daniel Eads Atlassian Team Nov 20, 2020

Hi @VinayKolla , welcome to the Community!

While I don't have experience with Gitlab Enterprise specifically, I know many providers are switching to access tokens instead of using passwords in clients. I'm wondering if this might be the case for your Gitlab Enterprise server. The Enterprise edition documentation shows that personal access tokens have been around for a while in EE.

To create an access token in Gitlab Enterprise, you can follow these steps:

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.

Then paste the token in as the password when configuring your Gitlab Enterprise account in Sourcetree:


Let me know how that goes!


Suggest an answer

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

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

60,412 views 127 26
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