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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


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

how can I connect to remote repository in gitlab via sourcetree?

I've added a ssh key in my gitlab profile and tried to connect via sourcetree. as  new-> clone from URL. here I've entered the SSH URL of the repository in gitlab, and it says it's invalid repository URL. 

2f authentication enabled in gitlab. I'm using sourcetree version 2.7.1 in mac.

anybody has already similar issue? or anybody can help me?




1 answer

3 votes
Ana Retamal Atlassian Team Mar 30, 2018

Hi Jay! Sourcetree does not directly support GitLab as a hosting service. This request is tracked in SRCTREE-1037. While you can't browse remotes or utilize any other extended integrations you are able to clone the repo via URL and use the rest of Sourcetree without restriction. 


You're running into one of the known limitations of 2FA and SourceTree at the moment. Currently, SourceTree will use SSH to do most everything with Bitbucket except build a list of repositories. There is an open feature request here to allow application specific passwords, this would allow SourceTree to use that set of credentials and get the list of repositories. Until then, you'll need to manually add the repositories into SourceTree as it's not possible to authenticate with SourceTree to Bitbucket once 2FA is turned on.
You might want to try the solution provided at 2fa with Github in Sourcetree, but please keep in mind that those were designed for Github, not Gitlab, so they might not work in your case.


Hope that helps!


Like # people like this

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events