git 初用

git config --global user.username "wangzhaoshuang";

git config --global user.email "[email protected]";

git config -l

1、生成ssh-key
ssh-keygen -t rsa -C "[email protected]"        一路回车生成秘钥

ssh-keygen命令的一些说明

ssh-keygen命令可以生成rsa或dsa两种格式的密钥。在上面的示例中,使用-t rsa参数生成了id_rsa和id_rsa.pub两个文件,分别表示rsa私钥和rsa公钥。同理,可以使用-t dsa参数生成dsa私钥和dsa公钥,生成的文件名分别是:id_dsa、id_dsa.pub。

猜你喜欢

转载自www.cnblogs.com/wangzhaoshuang/p/9903450.html