之前一直在ubuntu系统上使用git版本管理,但了centos上开发,也想使用git 版本。
1. yum 安装git
[root@localhost bin]# yum install git
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.yun-idc.com
* extras: mirrors.yun-idc.com
* updates: mirror01.idc.hinet.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.7.1-3.el6_4.1 will be installed
--> Processing Dependency: perl-Git = 1.7.1-3.el6_4.1 for package: git-1.7.1-3.el6_4.1.x86_64
--> Processing Dependency: perl(Git) for package: git-1.7.1-3.el6_4.1.x86_64
--> Processing Dependency: perl(Error) for package: git-1.7.1-3.el6_4.1.x86_64
--> Running transaction check
---> Package perl-Error.noarch 1:0.17015-4.el6 will be installed
---> Package perl-Git.noarch 0:1.7.1-3.el6_4.1 will be installed
--> Finished Dependency Resolution2. 查看git 是否安装完全。
$ git --version
git version 1.7.1
3. git 配置
$ git config --global user.name "xxx"
$ git config --global user.email "xxx@163.com"
本文详细介绍了在CentOS系统上通过YUM安装Git,并进行了基本配置的方法,包括查看版本信息及全局用户设置。
3413

被折叠的 条评论
为什么被折叠?



