Red Hat Training

A Red Hat training course is available for RHEL 8

1.3. 设置以管理应用程序版本

有效的版本控制对于所有多开发人员项目非常重要。Red Hat Enterprise Linux 附带了 Git,一个分布式版本控制系统。

流程

  1. 安装 git 软件包:

    # yum install git
  2. 可选:设置与您的 Git 提交关联的全名和电子邮件地址:

    $ git config --global user.name "Full Name"
    $ git config --global user.email "email@example.com"

    Full Nameemail@example.com 替换为您的实际名称和电子邮件地址。

  3. 可选:要更改由 Git 启动的默认文本编辑器,请设置 core.editor 配置选项的值:

    $ git config --global core.editor command

    使用用来启动选定的文本编辑器的命令替换 command

其他资源

  • Git 的 Linux 手册页和教程:

    $ man git
    $ man gittutorial
    $ man gittutorial-2

    请注意,许多 Git 命令都有自己的手册页。例如,请参阅 git-commit(1)

  • Git 用户手册 - Git 的 HTML 文档位于 /usr/share/doc/git/user-manual.html
  • Pro GitPro Git 书的线上版本提供了 Git 、其概念及用法的详细描述。
  • Reference - Git 的 Linux 手册页的线上版本