码迷,mamicode.com
首页 > 其他好文 > 详细

git ssh 生成私钥和公钥

时间:2018-04-27 02:44:10      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:com   glob   config   用户名   user   email   bsp   conf   密钥   

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

  git config --global user.name "toloy"

  git config --global user.email "274696224@qq.com"

  2、查看是否有ssh密钥

  cd ~/.ssh

  3、生成密钥

  git-keygen -t rsa -C "274696224@qq.com"

git ssh 生成私钥和公钥

标签:com   glob   config   用户名   user   email   bsp   conf   密钥   

原文地址:https://www.cnblogs.com/toloy/p/8955321.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!