git config --global user.name "wuning"
git config --global user.email "1491624268@qq.com"
ssh-keygen -t rsa -C "1491624268@qq.com"
(三次回车)
cat ~/.ssh/id_rsa.pub
ssh -T git@gitee.com
注意版本若ssh-keygen -t rsa -C "149162426811556@qq.com"生成密钥后,在使用时不行,建议换ssh-keygen -t ed25519 -C "149162426811556@qq.com"生成
git-ssh到码云的步骤命令
于 2020-05-24 20:54:40 首次发布
本文详细介绍如何通过gitconfig命令设置全局用户名与邮箱,以及如何使用ssh-keygen生成SSH密钥,并验证密钥是否成功添加到Gitee。此外,还提供了一种解决方案,当使用特定邮箱生成SSH密钥出现问题时,可以尝试使用不同的SSH密钥类型。
1377

被折叠的 条评论
为什么被折叠?



