6

解决在Mac上sourcetree反复要求输入密码的问题

 2 years ago
source link: https://zhuanlan.zhihu.com/p/381180050
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

解决在Mac上sourcetree反复要求输入密码的问题

MacW每天为大家分享软件教程和技巧。

在安装完sourcetree之后,无论是拉取还是推送代码都是提示弹层输入密码,怎么办?

v2-a8f7c6c513eec7c1dadaad5bf5b1367c_720w.jpg

问题描述

如下图所示,无论是拉取pull代码,还是提交push代码。都是会出现下面的要求输入密码的对话框。

v2-583f7d0b7670d5cf910fb9ec3b4aa1c2_720w.jpg

解决方案

复制以下代码到终端上执行一下:

git config --global credential.helper osxkeychain

执行完成后,会跳出钥匙串的对话框此处填写的是电脑开机密码,并且勾选始终允许,否则,还是要一直跳出现在的这个登陆窗口了。

v2-f0dcb00dafb1fd73bdbdcfc15707bc4d_720w.jpg
发布于 10 小时前

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK