ssh-keygen -t rsa -C '邮箱地址'
复制公钥打开~/.ssh/id_rsa.pub文件(~表示用户目录,比如我的windows就是C:UsersAdministrator),复制其中的内容
gitlab上添加公钥Profile Settings-->SSH Keys--->Add SSH Key

ssh-keygen -t rsa -C '邮箱地址'
复制公钥打开~/.ssh/id_rsa.pub文件(~表示用户目录,比如我的windows就是C:UsersAdministrator),复制其中的内容
gitlab上添加公钥Profile Settings-->SSH Keys--->Add SSH Key