github配置ssh key

之前一直被git的配置弄晕,现在也不能说十分清楚

不过配置成功了 记录一下

1.在本机生成id_rsa.pub 执行命令:ssh-keygen -t rsa -C "[email protected]"

在本机home目录下的.ssh文件夹中

2.复制id_rsa.pub的内容到https://github.com/settings/keys中的sshkey

3.当然需要配置

git config --global user.email "[email protected]"

git config --global user.name "swg"

猜你喜欢

转载自blog.csdn.net/weiguang111/article/details/78460858