1:配置用户名、密码
# 配置用户名
$ git config --global user.name author #将用户名设为author
# 配置email
$ git config --global user.email author@corpmail.com #将用户邮箱设为author@corpmail.com
# 查看用户
$ git config --list
2:生成ssh key
ssh-keygen -t rsa -C "youremail@example.com"