GIT克隆项目使用SSH方式不需要每一次都登录,下面介绍给仓库配置SSH密码的方式。
生成key
- 在你需要的文件路径下打开Git Bash
- 指令:$ ssh-keygen -t rsa -b 4096 -C “your_email@example.com”
- 一直点击回车
- 运行指令:clip < ~/.ssh/id_rsa.pub
若没有提示,则为运行成功 - 回到个人页面:https://github.com/
点击settings-》SSH and GPG kwys -》new SSH key
- 按如图进行填写
C:\Users\Administrator.ssh\id_rsa.pub
点击add SSH
完成