赞
踩
git config --global user.name <yourname>
git config --global user.email <mygitlab@mali.cn>
ssh-keygen -t rsa -C "mygitlab@mail.cn"
输入命令后一直回车(密码可以不填),至此 gitlab 用的密钥对就生成了, 在 ~/.ssh 文件夹下。
切换到~/.ssh,命令行显示id_rsa.pub内容
cd ~/.ssh
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。