Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate sourcetree for gitlab

I worked on github and integrated it to sourcetree (MAC version) for one of my project. I would like to use sourcetree for GITLAB. But I am not able to add remote of gitlab to source tree. In Repository settings, Only I can see host type as "unknown", "bitbucket", "github" & "stash". I used unknown but it won't help me.

Sourcetree Version 2.0.4 (2.0.4)

enter image description here

like image 614
Wagh Avatar asked Dec 19 '14 16:12

Wagh


People also ask

How do I set up SourceTree on Mac?

Installing sourcetree for git in MacOSStep 1: To download the latest release of SourceTree from its official website. Step 2: Click on the Download for Mac OS X button and read their policy and click agree and click download once again. Step 3: The application will be downloaded to your downloads folder.


2 Answers

This worked for me,

Step 1: Click on + New Repository> Clone from URL

Step 2: In Source URL provide URL followed by your user name,

Example:

  • GitLab Repo URL : http://git.zaid-labs.info/zaid/iosapp.git
  • GitLab User Name : zaid.pathan

So final URL should be http://[email protected]/zaid/iosapp.git

Note: zaid.pathan@ added before git.

Step 3: Enjoy cloning :).

like image 193
Mohammad Zaid Pathan Avatar answered Sep 27 '22 22:09

Mohammad Zaid Pathan


If you have the generated SSH key for your project from GitLab you can add it to your keychain in OS X via terminal.

ssh-add -K <ssh_generated_key_file.txt>

Once executed you will be asked for the passphrase that you entered when creating the SSH key.

Once the SSH key is in the keychain you can paste the URL from GitLab into Sourcetree like you normally would to clone the project.

like image 30
nick_mn Avatar answered Sep 27 '22 23:09

nick_mn