git 如何在 SourceTree.app 中设置您的头像?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18454273/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 16:50:08  来源:igfitidea点击:

How to set up your avatar in SourceTree.app?

gitatlassian-sourcetree

提问by Simon

I saw other people's image appears to the right of the commit message. How to set up that?

我看到其他人的图像出现在提交消息的右侧。那要怎么设置?

edit: The GUI tools I am using is the SourceTree mac version.

编辑:我使用的 GUI 工具是 SourceTree mac 版本。

回答by liu johnson

  1. Go to http://en.gravatar.com/create your account and upload the avatar image files that map to your emails.
  2. Close Source Tree
  3. Delete the cache file (or delete all files) inside path
  1. 转到http://en.gravatar.com/创建您的帐户并上传映射到您的电子邮件的头像图像文件。
  2. 关闭源树
  3. 删除路径内的缓存文件(或删除所有文件)

%USERPROFILE%\AppData\Local\Atlassian\SourceTree\cache\img

%USERPROFILE%\AppData\Local\Atlassian\SourceTree\cache\img

e.g. C:\Users\MYUSERNAME\AppData\Local\Atlassian\SourceTree\cache\img

例如 C:\Users\MYUSERNAME\AppData\Local\Atlassian\SourceTree\cache\img

  1. Open Source Tree. Now you got what you want!
  1. 开源树。现在你得到了你想要的!

回答by Iain

If you're talking about Github, the profile image is being pulled from Gravatar (https://en.gravatar.com/).

如果您在谈论 Github,则个人资料图片是从 Gravatar ( https://en.gravatar.com/) 中提取的。

回答by Michael Murphy

There is an alternative solution for those who just want their Gravatar avatar to display as blank in Source Tree.

对于那些只希望他们的 Gravatar 头像在 Source Tree 中显示为空白的人来说,有一个替代解决方案。

In the SourceTreeApp, navigate to Tools-> Options.

SourceTree应用程序中,导航到Tools-> Options

Then, under the 'General' tab, under 'Commit Settings' section, there is an option to use Gravatar.com or not.

然后,在“常规”选项卡下的“提交设置”部分下,可以选择是否使用 Gravatar.com。

'Load avatar images from gravatar.com'

'从gravatar.com加载头像图片'