Red Hat Training

A Red Hat training course is available for Red Hat Decision Manager

Chapter 6. Importing projects from a Git repository into Red Hat Developer Studio

You can configure Red Hat Developer Studio to connect to a central Git asset repository. The repository stores rules, models, functions, and processes. You can either clone a remote Git repository or import a local Git repository.

6.1. Cloning a remote Git repository

You can clone a Git repository to use with Red Hat Developer Studio.

Prerequisites

  • Red Hat Developer Studio is installed with the Red Hat Decision Manager plug-ins.
  • You have access permission for the remote Git repository that you want to clone.

Procedure

  1. In Red Hat Developer Studio, select the server from the Server tab and click the start icon to start the server.
  2. Enter the following command in a terminal to start the secure shell server, if it is not running already.

    /sbin/service sshd start
    Note

    This command is specific to Linux and Apple Macintosh. On these platforms, if sshd has already been started, this command fails. If this happens, you may safely ignore this step.

  3. In Red Hat Developer Studio , select FileImport…​ and navigate to the Git folder.
  4. Open the Git folder, select Projects from Git, and click Next.
  5. Select the repository source as Clone URI and click Next.
  6. Enter the details of the Git repository and click Next.
  7. Select the branch you want to import and click Next.
  8. To define the local storage for this project, enter or select a non-empty directory, make any configuration changes, and click Next.
  9. Import the project as a general project in the following window and click Next.
  10. Name the project and click Finish.

6.2. Importing a local Git repository

You can import a local Git repository to use with Red Hat Developer Studio.

Prerequisite

Red Hat Developer Studio is installed.

Procedure

  1. In Red Hat Developer Studio, select the server from the Server tab and click the start icon to start the server.
  2. Select FileImport and navigate to the Git folder.
  3. Open the Git folder to select Projects from Git and click Next.
  4. Select Existing local repository as the repository source and click Next.
  5. Select the repository that is to be configured from the list of available repositories and click Next.
  6. In the window that opens, select Import as general project and click Next.
  7. Name the project and click Finish.