1. 安装centos 7, mini install
2. 安装yum源, 然后 yum install gitlab-ce
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1
3. 开始设置gitlab
gitlab-ctl reconfigure
4. 浏览器访问gitlab, 设置密码
5. 笔记本电脑用cygwin提供的ssh, 所以ssh的 id-rsa.pub在cygwin中查看,
cat ~/.ssh/id-rsa.pub
6. 在gitlab中 user setting中的SSH Keys中, 添加笔记本电脑中的 id-rsa.pub的内容
7. 笔记本即可用git访问通过ssh访问gitlab