Git祕鑰SSH
以下操作均在windows下哦~
1.打開gitBash輸入一下命令回車
cd ~/.ssh/
2.配置全局的username,輸入後回車
user.name: 你的git用戶名;
git config --global user.name "Lane-naruto"
3.配置全局的email,輸入後回車
user.email: 你的git郵箱地址;
git config --global user.email "[email protected]"
4.配置你的公司或個人郵箱,輸入後回車"
該步驟完成之後會有三個選項全部回車就好
ssh-keygen -t rsa -C "[email protected]"
回車之後如果現實如下圖:說明你的祕鑰已經存在,並在圖中所示目錄中!
回車之後如果顯示如下圖:說明你的祕鑰已經生成,並在圖中所示目錄中!
5.用文本方式打開id_rsa.pub文件後進行全部複製
6.登錄Git添加祕鑰
這樣就完成啦~
鳴爺每日分享:
“樹葉飛舞之時,必會燃氣烈火~”
Git入門之安裝(二):https://blog.csdn.net/weixin_42701636/article/details/102909546
Git入門教程之註冊(一):https://blog.csdn.net/weixin_42701636/article/details/102905447