git安装 apt-get install git 配置用户名及邮箱 git config --global user.name "yourName" git config --global user.email "yourAddress" 生成密钥: ssh-keygen -C 'yourAddress' -t rsa 获取公钥:cat ~/.ssh/id_rsa.pub add Key: 将公钥添加到git网页即可