git安装

  1. apt-get install git
  2. 配置用户名及邮箱

          git config --global user.name "yourName"

          git config --global user.email "yourAddress"
  3. 生成密钥: ssh-keygen -C 'yourAddress' -t rsa
  4. 获取公钥:cat ~/.ssh/id_rsa.pub
  5. add Key: 将公钥添加到git网页即可
posted @ 2018-12-04 09:57  一沐春风  阅读(106)  评论(0编辑  收藏  举报