搜索

此内容没有您所选择的语言版本。

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

download PDF

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 File Import…​ 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.

Prerequisites

  • 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 File Import 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.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.