打开终端并且输入:
git config --global credential.helper osxkeychain
第一次需要输入密码,以后都不需要了
解决SourceTree每次拉取提交都需要输入密码的问题
原文:https://www.cnblogs.com/niuben/p/12030063.html