标签:输入 epo 保存 init mkdir sha str shared 域名
1、安装git
yum install -y git
2、创建git仓库保存的目录
mkdir /data/git_repo
3、初始化空仓库
cd /data/git_repo
git init --bare --shared example.git
4、客户端使用SSH账户访问服务器仓库
git clone ssh://[ssh账户名]@[服务器域名或IP]/data/git_repo/example.git
然后要求输入[ssh账户名]对应的密码,输入正确的密码即可访问仓库
标签:输入 epo 保存 init mkdir sha str shared 域名
原文地址:http://www.cnblogs.com/liuzhenwei/p/7922928.html