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
-
Start the SAP Data Hub cockpit in a Web browser.
-
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.
-
In the navigation pane, right-click the project that you have not connected to a Git
repository and choose Initialize Git.
-
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.
-
Choose OK.
-
Push changes.
If you want to push changes in a project to the remote Git repository, follow these
steps:
-
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.
-
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.
-
In the Add a commit message dialog box, provide
a commit message.
-
Choose OK.