- 安裝git鞠眉,從選擇的git目錄右鍵打開git bash
- 鍵入命令:ssh-keygen -t rsa -C "email@email.com"(前提已經(jīng)配置好git賬號凯旋,如下)
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
3.提醒輸入key,可以不輸入昔逗,回車三連擊
4.在C:\user\用戶名.ssh中找到id_rsa.pub文件
5.用notepad++ 打開并復(fù)制公鑰(用記事本打開可能會添加十六進(jìn)制字符)