搭建简易git server
使用ssh登陆

安装

1
yum install -g git

创建repo

1
2
mkdir -p /repos
git init --bare /repos/test.git

连接

1
2
3
4
5
cd ~/.ssh
touch config && chmod 600 config
echo "HostkeyAlgorithms +ssh-dss" >> config
git clone ssh://username@ip:port/repos/test.git test
## git clone ssh://kingwen0302@192.168.1.100:22/repos/test.git test