手残党之前在设置时不小心设置了密码,导致每次git pull都需要密码
解决办法如下
1、输入命令 ssh-keygen -p
然后弹出,Enter file in which the key is (/c/Users/jing.huang-n/.ssh/id_rsa):
直接按回车
2、再出现Enter old passphrase:
然后输入旧密码
3、Enter new passphrase (empty for no passphrase):
后面的都直接按回车
Enter same passphrase again:
继续按回车
出现Your identification has been saved with the new passphrase.
说明已经设置成功
最后使用git pull尝试看是否还需要密码,没有密码则设置成功