+91 9591117915 info@pixtell.net

Using GitLab with Sourcetree

Pixtell Labs gamedev, tips Using GitLab with Sourcetree
Using GitLab with Sourcetree

gamedev tips

Using GitLab with Sourcetree

Posted By pxteam

Gitlab is the new beast in town when it comes to GIT Repositories.

Why is Gitlab so awesome ?

  • Its faster than bitbucket when it comes to pull and commits. ( As the project size increased we found BitBucket to crawl ) . Github is good but costs you for private repos !!
  • Free unlimited Private Repo’s for up to 5 users to collaborate with
  • Continuous build integration ( yet to figure it out for Unity 🙂 )

How to configure Gitlabs with Sourcetree ?

STEP 1 :  First generate the SSH key ( cant use the https way with Sourcetree due to lack of options to connect to Gitlab ).

  1. Log onto GitLab
  2. In the left pane, click Profile Settings.
  3. Click SSH Keys.

You should now see something like this :

SSH screen gitlab
SSH keys screen in Profile settings when you login to gitlab.com

STEP 2: Creating your SSH key on local machine

When you’re prompted to “Enter a file in which to save the key,” press Enter. This accepts the default file location.

At the prompt, type a secure passphrase.

STEP 3: Copy the SSH key into the key text-area in STEP 1.

  1. Open the file ( /Users/you/.ssh/id_rsa ) created in STEP 2 and copy the content starting from ssh-rsa all the way to your email id.  
  2. Add a title , Save and you are done !

STEP 4: Configure your Sourcetree to use SSH and connect to your gitlab repo

1.Clone from URL

Clone from URL

2.  Enter your repo details

cloneRepo_dialog If you enter the right details you will be able to hit the clone button 😉 .

You should be all set now to use Sourcetree with GitLab. Happy #gamedev !!

 

Tagged ,

Written by pxteam

Leave a Reply

Your email address will not be published. Required fields are marked *