git生成秘钥

安装:

linux(这里以centos为例):

yum -y install git

windows下载地址:

http://mirror.cnop.net/Git/Git-2.18.0-64-bit.exe

生成:

git config –global user.name "[email protected]"   #用户更换成自己的
git config –global user.email "[email protected]"
ssh-keygen -t rsa -C "[email protected]"    #敲3次回车

发表评论

您的邮箱地址不会被公开。