赞
踩
[root@itcast-01 ~]# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel gcc-c++
- [root@itcast-01 git-2.9.3]# make prefix=/usr/local all
- [root@itcast-01 git-2.9.3]# make prefix=/usr/local install
- //添加Linux的用户,用户名为git的用户:
- [root@itcast-01 ~]# useradd git
-
- //设置git用户的密码
- [root@itcast-01 ~]# passwd git
-
- //切换到git用户
- [root@itcast-01 ~]# su - git
- //初始化仓库,仓库名为taotao.git:
- [git@itcast-01 root]$ cd
- [git@itcast-01 ~]$ git init --bare taotao.git
- //始化空的 Git 仓库于 /home/git/taotao.git/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。