git配置用户名密码、生成ssh key

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/LONG_Yi_1994/article/details/86589431

1:配置用户名、密码

# 配置用户名
$ git config --global user.name author #将用户名设为author
# 配置email
$ git config --global user.email [email protected] #将用户邮箱设为[email protected]
# 查看用户
$ git config --list

2:生成ssh key

ssh-keygen -t rsa -C "[email protected]"

猜你喜欢

转载自blog.csdn.net/LONG_Yi_1994/article/details/86589431