安装和配置 Git - 7.3

Talend安装指南

Version
7.3
Language
中文(简体)
Operating system
Windows
Subscription type
订阅
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Activity Monitoring Console
Talend Administration Center
Talend Artifact Repository
Talend CommandLine
Talend Data Preparation
Talend Data Stewardship
Talend DQ Portal
Talend ESB
Talend Identity and Access Management
Talend Installer
Talend JobServer
Talend Log Server
Talend MDM Server
Talend MDM Web UI
Talend Repository Manager
Talend Runtime
Talend SAP RFC Server
Talend Studio
Content
安装和升级
Last publication date
2022-10-30

此过程描述如何安装和配置 Git,以便将您的所有工程数据 (如作业、数据库连接、例程、小作业、数据模型、流程、存储过程) 存储在 Talend Studio 的共享存储库中。

有关受支持的 Git 服务器的更多信息,请参阅兼容的版本控制系统

注: 如果您安装的 Git 服务器已经提供了 Git,而您在本地计算机上不需要它,则可能不需要此过程。

步骤

  1. https://git-scm.com/downloads 下载对应于您系统的 Git 版本,并遵循安装说明。
  2. 创建一个 SSH 密钥对。
    1. 打开 Git Bash。
    2. 用下述命令生成一个新密钥,其中 email 为 Git 服务器账户的邮件地址:
      ssh-keygen -t ecdsa -b 256 -m PEM -C "email"
    3. 当收到输入要保存密钥的文件的提示时,直接按回车键接受默认保存位置,或者键入文件名然后按回车键确认。
    4. 当提示您输入密码时,按回车键将其留空。
  3. 将生成的密钥文件放在 C:\Users\User_Name\.ssh 文件夹中。
  4. 将公钥添加到您的 Git 服务器的设置中。
    1. 通过执行以下命令创建 known-hosts 文件:
      ssh-keyscan.exe -H git_server_hostname >> known_hosts
    2. 如果您使用多个 SSH 私钥,请在 .ssh 文件夹中创建一个 config文件,然后在文件中添加以下内容,以指定哪个密钥文件用于哪个 Git 服务器。
      警告:config 文件优先于 Eclipse 配置。
      Host <git_server1_hostname>
      IdentityFile C:/users/username/.ssh/key1
      Host <git_server2_hostname>
      IdentityFile C:/users/username/.ssh/key2
  5. 将连接信息添加到 Talend Administration Center 配置。更多信息,请参见 Talend Administration Center 用户指南中的 Setting up Git parameters (英文版) 一节。
    注:

    Talend Administration Center 作为服务运行时,确保 known_hosts 文件位于正确的文件夹中。若非如此,则将 known_hosts 文件复制到 user.home\.ssh 文件夹 (或者,如果不存在 .ssh 文件夹,则新建该文件夹)。

    Talend Administration Center 作为 Windows 服务运行时,user.home 类似于:C:\Windows\System32\config\systemprofile