centos git 安装
时间: 2023-08-21 09:08:34 浏览: 102
在CentOS上安装Git有两种方式。第一种方式是通过Yum源安装,具体步骤如下:
1. 首先,卸载旧版本的Git:`yum remove git`
2. 安装Yum源的Git版本:`yum install -y git`
3. 查看已安装的Git版本:`git version`
4. 配置全局环境变量,具体步骤请查看下方的第三部分配置说明。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [CentOS 安装 Git](https://blog.csdn.net/qq_35453862/article/details/123353721)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [CentOS上安装git](https://blog.csdn.net/u011523953/article/details/113844423)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文