使用ssh方式拉取/提交代码
1、生成公钥
在自己本地生成公钥,cmd下输入命令:ssh-keygen
一路回车
在C:\Users\Administrator.ssh中找到id_rsa.pub文件
2、配置公钥
打开gitlab,查找ssh keys(ssh密钥)
git地址:http://gitlab.beauty-lean.com:8929/
把文件中内容拷贝到自己的gitlab账号中
3、配置登录账号
配置git登录邮箱和密码,必须和gitlab邮箱账号一致
git config --global user.name "xxx" git config --global user.email "xxx@17tongx.com"
4、拉取/提交代码
git clone git@gitlab.beauty-lean.com:2224/tx/hhy_plm.git
ssh方式使用git