mac避免每次git pull /git push 都需要输入密码的解决方案

739 阅读1分钟

mac系统下,使用git pull push 总是提示输入密码

首先执行 ssh-add -L

$ ssh-add -L
The agent has no identities.

再执行一次ssh-add 输入密码就好了

$ ssh-add
Enter passphrase for /Users/wjf/.ssh/id_rsa: 
Identity added: /Users/wjf/.ssh/id_rsa (xxxxxx@qq.com)