Linux下Git安装配置
安装
sudo apt-get install git
配置
git config --global user.name "用户名"
git config --global user.email "邮箱"
SSH公钥
ssh-keygen -t rsa -C "邮箱"
查看SSH公钥
cat fileName.pub
把SSH公钥添加到码云
https://gitee.com/profile/sshkeys
把私钥添加到ssh-agent
ssh-add id_rsa
若执行ssh-add出现
Could not open a connection to your authentication agent
先执行 ssh-agent bash