How to use Git Projects?

Available from Release 5.2.0 of Onesait Platform

Introduction

In the Q3 release of 2023 we have incorporated the concept of Git Project, which allows you to access a Git repository from the Platform Control Panel and perform typical Git operations from the platform, including inline editing.

How does it work?

List of Git Projects

It is accessed from the menu Development > My Git Projects.

When you access it, it shows the registered Git projects.

In the list screen, clicking on the 'Options' icon, a menu will appear with the columns that you can see in your list.

Git Project Creation

It is accessed from the Development > My Git Projects menu.

To create a new project, click on the "+ " icon and you will be taken to the project creation screen.

Insert the name of the project on the platform, the URL, the user and the token of your Git project.

When you fill in the required data and click "create", the list of all projects created on the platform appears.

Editing a Git Project

The parameter modification screen is accessed by clicking on the "edit" icon in the project list:

 

In the project edit screen, you can modify the project's Git settings.

Working with a Git Project

To work with the Git project, click the "view" icon in the list:

In the Git project work screen, the first thing you have to do is to select the Git branch on which you will work.

Once selected, on the left side (File Tree) you will see the structure of your Git repository and you will be able to edit the files:

 

Once the changes have been made in the chosen file, click on the "Save" button and a pop-up will appear indicating that the changes are going to be made in the chosen branch. It indicates the files that are going to be saved and allows you to enter the comment of the commit.

To add or remove files, click on the button at the bottom of the file tree.

We have also incorporated generative AI in this editor so that, once you have configured the AI engine you want to use, you can ask it to generate the necessary code.