查看用户、邮箱
git config user.name
git config user.email
修改用户、邮箱git config --global user.name "xxx"
git config --global user.email "[email protected]"
生成ssh密钥ssh-keygen -t rsa -C "[email protected]"
查看SSH秘钥cat ~/.ssh/id_rsa.pub
将秘钥复制,然后打开GitLab,单击settings->SSH Keys,把内容粘贴到key中,点击Add key按钮添加完成。
