git pull 和 git push 每次都需要输入密码解决方案如下:
$ ssh-keygen -p
如果原来有密码需要先输入旧密码,当提示你输入新的密码的时候,按enter就可以啦,继续确认enter就可以
➜ ~ git:(master) ✗ ssh-keygen -p
Enter file in which the key is (/Users/never/.ssh/id_rsa): (注:此处按Enter)
Enter old passphrase: (注:此处需要输入旧密码)
Enter new passphrase (empty for no passphrase): (注:此处直接Enter)
Enter same passphrase again: (注:直接Enter)
Your identification has been saved with the new passphrase
网友评论