安装git
sudo apt install git
生成ssh key
ssh-keygen
设置邮箱和用户名
git config --global user.email 930372551@qq.com
git config --global user.name liteng
常见问题
1、解决sign_and_send_pubkey: signing failed for RSA "/home/liteng/.ssh/id_rsa" from agent: agent refused operation 的问题。
chmod 0600 ~/.ssh/id_rsa