1.2. 设置以管理应用程序版本
有效的版本控制对于所有多开发人员项目非常重要。Red Hat Enterprise Linux 包括 Git,一种分布式版本控制系统。
流程
安装
git
软件包:dnf install git
# dnf install git
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 可选:设置与您的 Git 提交关联的全名和电子邮件地址:
git config --global user.name "Full_Name" git config --global user.email "email@example.com"
$ git config --global user.name "Full_Name" $ git config --global user.email "email@example.com"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 将 Full Name 和 email@example.com 替换为您的名字和电子邮件地址。
可选:要更改 Git 启动的默认文本编辑器,请设置
core.editor
配置选项的值:git config --global core.editor command
$ git config --global core.editor command
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 使用用来启动选定的文本编辑器的命令替换 command。