配置自己的用户名和邮箱
1 | git config --global user.name "你的名字或昵称" |
生成ssh公钥
生成ssh key1
2ssh-keygen -t rsa -C "xxxxx@xxxxx.com"# Creates a new ssh key using the provided email
# Generating public/private rsa key pair...
查看public key1
2cat ~/.ssh/id_rsa.pub
# ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6eNtGpNGwstc....