Git 秘钥创建

gitlab 公司 > github 个人 (git 命令)
1. gitlab 账号 密码 以邮件的方式给你
2. 配公钥 私钥
  * 首先需要创建公钥
  ssh-keygen -t rsa -C "你的github邮箱(gitlab的账号)"
  
  * 接着打开公钥
  cat ~/.ssh/id_rsa.pub 
  
  * 添加公钥到 gitlab
3. git config --global user.name "John Doe(登录后的名字)"
   git config --global user.email johndoe@example.com(公司给的gitlab账号)

评论

暂无评论