一、配置ssh key

// 生成 ssh key
ssh-keygen -t rsa -C "your_email@xx.com"

//生成目录,默认是在 C:\Users\用户名xxx\.ssh 此目录中

 

打开 id_rsa.pub 文件, 把内容粘贴到 gitlab中 

 

二、配置本地账户、密码、邮箱

git config --global user.name "xxx"
git config --global user.email "xxxx"
git config --global user.password "xxx"

// 查看配置
git congif --list

 

posted on 2018-09-07 09:39  dengaye  阅读(494)  评论(0编辑  收藏  举报