Git安装
2020-02-07Linux90root668°c
A+ A-1. 安装环境
Centos6.6
2. 安装步骤
2.1 安装epel扩展源
[[email protected] ~]# yum install epel-release
2.2 安装git
[[email protected] ~]# yum install -y git
2.3 安装完后进行设置(配置用户名和邮箱)
[[email protected] ~]# git config --global user.name "90root" [[email protected] ~]# git config --global user.email "[email protected]"
2.4 查看用户信息
[[email protected] ~]# ls -la total 52 dr-xr-x---. 4 root root 4096 Sep 16 21:45 . dr-xr-xr-x. 23 root root 4096 Sep 16 21:33 .. -rw------- 1 root root 16 Apr 21 21:18 .bash_history -rw-r--r--. 1 root root 18 May 20 2009 .bash_logout -rw-r--r--. 1 root root 176 May 20 2009 .bash_profile -rw-r--r--. 1 root root 176 Sep 23 2004 .bashrc drwx------ 3 root root 4096 Apr 21 21:13 .cache -rw-r--r--. 1 root root 100 Sep 23 2004 .cshrc -rw-r--r-- 1 root root 50 Sep 16 21:45 .gitconfig drwxr-xr-x 2 root root 4096 Apr 21 21:13 .pip -rw-r--r-- 1 root root 64 Apr 21 21:13 .pydistutils.cfg -rw-r--r--. 1 root root 129 Dec 4 2004 .tcshrc -rw------- 1 root root 3134 Aug 13 16:45 .viminfo [[email protected] ~]# cat .gitconfig [user] name = 90root email = [email protected]
标签:Git