facebook

How to Connect GitLab to sourceTree for web project management?

Do you want to work on your git repositories more easily? You don’t like or don’t know how to work properly from the command line? In this article, find out how to do without command lines and work on your git repositories in this way.

Do you want to work on your git repositories more easily? Or connect GitLab to SourceTree? Don’t like or don’t know how to work well from the command line? In this article, find out how to do without command lines and easily work on your git repositories.

So, to achieve this, we need a Git GUI utility, I named SourceTree.

SourceTree is, in our opinion, the most complete in this area. Also, there is free software developed by Atlassian. They are also the authors of Bitbucket, which is used for accommodation. The two products mentioned are not necessarily linked during use.

Take a look at the video

Steps to connect GitLab to SourceTree

Let’s get to the point. Let’s see together what the steps are to manage our deposits easily.

  • Download SourceTree

 

Also, it is available on the site SourceTree. It is also available for PC, MAC and Linux versions. Depending on the platform, the interface sometimes changes, but the use is the same.

  • Configuration

We skipped the installation step. Additionally, we installed with default settings.

Here is the window you will get

 

  • First of the things we should go on Tools-> Options to choose the type of SSH client and the private key for the connection (You should first have generated a key)

NB: You need to add the key you generated to the git account for SSH connection

  • If you generated the key with putty, choose SSH Putty / Link Client and in the SSH key field, enter the path of the private key you generated.
  • If you generate the key with OpenSSH, choose the client OpenSSH, and in the field, SSH key, enter the path that leads to the private key.

Once done, click on Okay.

 

  • Let’s see how to recover a remote project

1- Copy the cloning link of your project on git

2- Click on Clone in the utility. You will get the figure above.

Note: For the path to clone your repository in your machine, you can either leave it as default or choose a path to which you would like the project to be cloned.

3- Once the form has been correctly completed, click on the clone

Your project has been perfectly cloned. So, you can explore it

on SourceTree

Steps to follow to modify your project

You can now modify your project

  • For example, I added a test.html file to my project

1- Click on the button + to add the modified files

2- Write the commit message

3- Validate the changes

After all this, we must now send the data to the git server

1- Click on send

2- Choose the branch on which you want to push data

3- Send the data

You will get this result.

If you update your git repository, you will see your file

The integration of git-flow in SourceTree is fascinating because it allows you to do many things other than pushing a repository. In case you can’t manage something with the interface, SourceTree comes by default with a command line with built-in git.

If you did not fully understand the steps or prefer to entrust your professional, please contact us.

Read also

Montréal

Our adress

9590 Boul Henri-Bourassa E Bureau 108, Montreal-Est, Quebec H1E 2S4, Canada

Subscribe to receive our news straight to your inbox.