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网页即可
原文地址:https://www.cnblogs.com/zengyjun/p/10062400.html