2.安装成功后打开git Bash 设置用户名和邮箱
git config --global user.name "YourName"
git config --global user.email "[email protected]"
3.生成SSH Key
在git Bash 中输入ssh-keygen -t rsa -C "[email protected]",连按三次enter键,会看到生成了 一个id_rsa.pub文件
在提示的文件目录下打开id_rsa.pub文件(或在git Bash中执行 cat id_rsa.pub命令)复制全部内容到码云添加密钥,
5.测试是否连接成功
git Bash中输入: ssh -T [email protected], 返回 Welcome to Git@OSC, yourname!则成功
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。