In order to easily upload your projects to GitLab, Connecting GitLab to sourceTree can easily do the job. Indeed, sourceTree offers the possibility of simply managing your web projects from your computer. In this article, we will see how to use SourceTree for managing projects on GitLab.
Using an application like SourceTree can have several benefits:
We'll show you where to connect GitLab to SourceTree. You will also discover, in this article, how to do without command lines and work in a simple way on your git repositories.
SourceTree is software developed by Atlassian . They are also the authors of Bitbucket which is used for hosting. Basically, their solution is designed for the management of their deposit. They have, however, given the possibility to use it for repositories on GitHub, GitLab (Enterprise) and GitLab (Community Edition).
GitLab is an Open-source application available in two versions, the Community and Enterprise version. You can use it as a repository for your web or application projects. With the community version, you can install it on a web server and use it within your organization. In the video and the explanations that will follow, we mainly talk about the integration of GitLab CE (community version). Nevertheless, with a few details ready, you can adapt the guide on the other version and the competing platforms of GitLab.
In the video we explain in a few steps how to make a connection on a Windows computer. [LaVideo block_name="index_video" key="zM9JAJCkz9M" img1="17081" img2="17081" title="Video: How to connect SourceTree with GitLab"]
Let's get straight to the point. Let's see together what are the steps to easily manage our deposits
Moreover, it is available on the SourceTree site. It is also available for PC, MAC and Linux versions. Depending on the platforms, the interface sometimes changes, but the use is the same
We skipped the installation step. Also, we installed with default settings. This is the window you will get
NB : The public key you generated must be added to git account for SSH connection
Once done, click Ok
1- Copy the clone link of your project on Git 2- Click on Clone in the utility. You will get the figure above Note : For the path to which the repository will be cloned 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 clone
Your project has been successfully cloned. So you can explore it on SourceTree
You can now edit your project
1- Click on the + button to add the modified files 2- Write the commit message 3- Validate the changes
Finally, we must now send the data to the git server 1- Click on send 2- Choose the branch on which the data will be pushed 3- Send the data
You will get this result
If you refresh your git repository you will see your file
The integration of gitflow in SourceTree is very interesting, because it allows you to do many things other than pushing a repository. In case you are unable to manage an activity with the interface, SourceTree comes by default with a command line with integrated Git.
You can find the list of several solutions depending on your operating system via the Git SCM link .
Using a graphical interface to manage your project can have several advantages. And, it is also a recommended option to avoid errors sometimes. If you have misunderstood the steps or prefer to entrust to a professional, please contact us
We are the experts in creating websites, online stores and functionalities for websites based in Montreal. Contact us today to create your website starting at $1,200.
npgilblas