部署Git 服务
创建git仓库
git-server上的操作:
[root@localhost ~]# yum install git git-core gitweb -y
[root@localhost ~]# useradd git
[root@localhost ~]# passwd git
[root@localhost ~]# mkdir /git-root/
[root@localhost ~]# cd /git-root/
[root@localhost git-root]# git init --bare shell.git
Initialized empty Git repository in /git-root/shell.git/
[root@localhost git-root]# chown -R git:git shell.git
注意: git init 和 git init –bare 的区别:
More »