查看用户、邮箱

git config user.name

git config user.email

修改用户、邮箱

git config --global user.name “xxx”
git config --global user.email “xxx@xxx.com” 

生成ssh密钥

ssh-keygen -t rsa -C “xxx@xxx.com” 

查看SSH秘钥

cat ~/.ssh/id_rsa.pub 

将秘钥复制,然后打开GitLab,单击settings->SSH Keys,把内容粘贴到key中,点击Add key按钮添加完成。 

 

 

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐