进入git bash
配置用户名

$ git config --global user.name "zyd"

配置邮箱

git config --global user.email "xxx@163.com"

配置ssh免密登录,三次回车

$ ssh-keygen -t rsa -C "xxx@163.com"

查看密钥

$ cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCo4odLrTPhy5fiFiRFGmO6VHLf5SjnzjoGcn4oWmQ4D8UtsPWhfhI2UbOXXHNyiAFl0d+O4G5EEb7nRc7jLVY0jSMa2rxTPvKabpnuyHGkrfzJ0rUhqurXRjCXFKDFCz8XXlqEV6NdrkOobGt5vR1QrpClTqdYzOJZ3ZJM3tpfT8hZgdmU8+YLTat5WVUPG0tGaBUcMlEapKZkOJgRj0oLBfE+SN2k+uyRjamxb6r1BlS2pswckWt5USGNU7uGG98ncCKF8+mgN45u4tbHPfn3DMR9b0Ba2a7hW/Qj2KTKMjROcL+emzd1hel9aLARxJLlaIbmdLgkdjQcIPiksxuZ xxx@163.com

登录码云,并复制其公钥信息,设置好标题
配置git免密_git
测试

$ ssh -T git@gitee.com

配置git免密_git_02