git ssh 生成私钥和公钥

  1、设置git的用户名和邮箱 

  git config --global user.name "toloy"

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

  2、查看是否有ssh密钥

  cd ~/.ssh

  3、生成密钥

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

猜你喜欢

转载自www.cnblogs.com/toloy/p/8955321.html