gitlab 配置

1、登录gitlab

http://ip:10080/

2、配置用户名密码

git config --global user.email "username@zitacr.com"

git config --global user.name "username"

3、生成SSH
ssh-keygen -t rsa -C "username@zitacr.com" -b 4096

4、拷贝SSH并粘贴到gitlab创建
cat ~/.ssh/id_rsa.pub | clip

5、检查是否成功
ssh -T git@ip

6、clone代码

posted on 2021-01-30 17:11  苹果园dog  阅读(99)  评论(0编辑  收藏  举报

导航