SAP Hana 2.0 incorporates the possibility of using Git-based version control in the web development tool IDE for Hana on HDI containers on the XSA Server.

This is a big change in the way of working and developing over version 1.0 with Hana Studio in which developers worked on the same version of the objects that, when activated, generated the physical objects in the database (run time objects).

Git in Hana allows you to create a local repository where each developer can manage the lifecycle of all objects (calculation views, procedures, etc.). It also supports synchronization with a remote repository so that you can collaborate and synchronize the changes of each local repository in a central one from which to manage the deployment of the application.

These central repositories can be some of those available to the development team or to the client where the project is being done or the well-known

The main benefits are as follows:

  • Backup of the code or object we are developing.
  • Complete tracking of the entire history of changes and modifications made.
  • Popular functionalities that allow you to create branches, merges, etc.
  • Integration with remote repositories.

GIT Web IDE for Hana

In our example and as a starting point we start on a HDB type project (Hana Database Module) and the first thing we must do is to activate the synchronization with our local Git repository.

Local Repository Initialization

At the time of initialization, Git will recognize all the objects that we have in our development area and will propose them for us to commit, that is to say, the synchronization of our workspace with the Git repository.

Initial Commit

From here we will be able to manage the whole life cycle of our development from the main branch called master or from the different branches or branches that we can create to make evolutions, extensions and corrections in our development.

In this example we have created a branch called Branch 1 from the master and we have been creating objects in parallel and making successive commits in both branches, as a final step we have made a merge to merge the objects of Branch1 with the existing ones in the master. The appearance of the history of steps is as follows.

Git History

As you can see it is a very useful complement to manage the versions of the developments.

So far this post about this local Git repository in Hana, in the next one I will tell you how to integrate this local Git with

Leave a Reply

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

Post comment