centos 搭建git服务 首先检查是否安装git [root@localhost home]# git --version git version 1.8.3.1 服务器端创建 git 用户,用来管理 Git 服务,并为 git 用户设置密码 [root@localhost home]# id git id: git:无此用户 [root@localhost home]# useradd git [root@localhost home]# passwd git 服务器端创建 Git 仓库 设置 /home/data/git/test.git 为 Git 仓库 然后把 Git 仓库的 owner 修改为 git [root@localhost home]# mkdir -p data/git/test.git [root@localhost home]# git init --bare data/git/test.git 初始化空的 Git 版本库于 /home/data/git/test.git/ [root@localhost home]# cd data/git/ [root@localhost git]# chown -R git:git test.git/ git服务器 搭建完成
《centos 搭建git服务》上暂无评论!