sourcetree 拉取 一直让输入密码

以下方法都没用

在控制台中

git gc

git prune

git config --global credential.helper store

git pull

输入账号密码

git pull

-- 直接拉取成功,不需要输入账号密码

-- 此时sourcetree也不用输入密码了

(可能因为之前执行过 git config --global credential.helper store 不用输入密码,不gc 掉,再执行这个,就不起作用)

https://www.jianshu.com/p/e2eca14e1b60

https://newsn.net/say/sourcetree-mac-pwd.html

 

https://www.jianshu.com/p/45597d229cf6

 

原文地址:https://www.cnblogs.com/jcz1206/p/10818427.html