0
点赞
收藏
分享

微信扫一扫

Git配置SSH Key


git config --global user.name "用户名" 
git config --global user.email "邮箱"

ssh-keygen -t rsa -C "邮箱"

生成文件

Git配置SSH Key_ssh


复制​​id_rsa.pub​​文件

找到 github 点头像👉 settings 👉 SSH and GPG keys

配置完后

Git配置SSH Key_ssh_02


验证 ​​ssh -T git@github.com​​​ 返回 ​​Hi <用户名>! You’ve successfully authenticated, but GitHub does not provide shell access.​

Git配置SSH Key_git_03


举报

相关推荐

0 条评论