安装
sudo apt update
sudo apt install git
配置
git config --global user.name "名称"
git congig --global user.email "邮箱"
生成ssh key
ssh-keygen -t rsa -C "邮箱"
# 查看公钥
cat ~/.ssh/id_rsa.pub
sudo apt update
sudo apt install git
git config --global user.name "名称"
git congig --global user.email "邮箱"
ssh-keygen -t rsa -C "邮箱"
# 查看公钥
cat ~/.ssh/id_rsa.pub