1. 首先要确保您安装了git
    2. 第二进行用户名和密码的设置

      1. git config --global user.name 'LunaLuo'
      2. git config --global user.email 'xxxxx@xxx.com'

      注:这里的用户名和密码可以随意,最好是真实的邮箱
      设置完毕后可以使用git config —list 进行查看设置信息

    3. 开始配置秘钥 | gittee | github | | —- | —- | | ssh-keygen -t rsa -C "123456789@qq.com" | | | | |

    4. 配置秘钥ssh-keygen -t rsa -C “123456789@qq.com”,

    出现提示Enter file in which to save the key (/Users/mac/.ssh/id_rsa): /Users/mac/.ssh/gitee_id_rsa,后面直接回车

    1. cat ~/.ssh/gitee_id_rsa.pub获得公钥,复制放到gitee上面的部署管理器
    2. ssh-add ~/.ssh/gitee_id_rsa
    3. ssh -T git@gitee.com