- GIT BASH 进入用户目录 ~
- 删除以前创建的 ssh : rm -r .ssh/
- 创建ssh :
//邮箱仅作为标识,不必须为git邮箱
//三下回车,生成ssh-key
ssh-keygen -t ed25519 -C "xxxxx@xxxxx.com"
- 在 .ssh 目录下 ,打开 .pub 复制公钥,在托管网站上添加公钥
- 添加后,在终端(Terminal)中输入 ssh -T git@gitee.com
- 添加远程ssh地址,免密登录拉取推送
//邮箱仅作为标识,不必须为git邮箱
//三下回车,生成ssh-key
ssh-keygen -t ed25519 -C "xxxxx@xxxxx.com"