Modeling Guide

Initialize a Local Git Repository

Initialize a local repository for any project in your workspace that is not already connected to a Git repository. After initializing a local repository for your project, you likely want to set a remote repository for your project, so you can push your work to a central Git repository.

Prerequisites

You have uploaded valid SSL certificates to the SAP Web IDE SSL Certificate Management tool for working with the Git repositories.

To obtain the URL of the SAP Web IDE SSL Certification Management tool, run the command, xs app di-cert-admin-ui --urls in the CLI of XS Advanced. This command returns the URL of the SAP Web IDE SSL Certificate Management admin tool.

Context

Initializing local Git repository helps you to push your work to a central Git repository. You can create an empty local repository for your project, and connect the empty local repository to a remote repository.

Procedure

  1. Start the SAP Data Hub cockpit in a Web browser.
  2. In the System Status section, choose the Modeling tile.
    The cockpit opens the SAP Data Hub Modeling tool in a new tab in the same browser window.
  3. In the navigation pane, right-click the project that you have not connected to a Git repository and choose Initialize Git.
  4. In the Configure Git Repository dialog box, insert the Git repository URL.
    The name of the project in your workspace and the remote repository must be the same.
  5. Choose OK.
  6. Push changes.
    If you want to push changes in a project to the remote Git repository, follow these steps:
    1. In the navigation pane, right-click the project and choose Git Push.
      The Git Push menu option appears only if you have successfully initialized the project as a Git repository.
    2. Enter the Git User Name and Password.
      Providing the Git user details is a one-time activity, and you have to provide the Git user name and password only if you have not already authenticated the Git push.
    3. In the Add a commit message dialog box, provide a commit message.
    4. Choose OK.