在Xcode中更改Git的用户图片 [英] Change the user picture for Git in Xcode

查看:122
本文介绍了在Xcode中更改Git的用户图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法改变Xcode5的Git用户图片?

我可以使用如下命令更改用户名和电子邮件:

xcrun git config --global user.name' new_user_name'

xcrun git config --global user.email'new@email.com'



但是用户图片怎么样?解析方案

您的Mac联系人。如果联系人有图片,并将该联系人与Git提交者相关联,则Xcode将在历史记录中显示该联系人。下面是它在Xcode 6中的工作原理,在Xcode 5中试用它:在源代码管理 - 历史记录中,将鼠标悬停在提交者的名字上



    / li>
  • 从下拉菜单中点击该超级小巧的显示三角形

  • ,选择添加到联系人

  • 您现在可以创建一个新联系人,包括图片或选择现有的并选择联系人
  • 确认您的选择,并且图标显示在您的项目中



Xcode不够巧妙,无法将相同的提交者联系人应用于所有项目,因此您需要为每个项目重复此过程。




Is there any way to change the Git user picture for Xcode5?

I can change the username and email with command like this:
xcrun git config --global user.name 'new_user_name'
xcrun git config --global user.email 'new@email.com'

But what about the user picture?

解决方案

The user pictures in Xcode are linked to your Mac Contacts. If the contact has a picture and you associate that contact with a Git committer then Xcode will show it in History. Here's how it works in Xcode 6, try it in Xcode 5:

  • in Source Control - History, hover over the name of the committer
  • click on that super teeny tiny disclosure triangle
  • from the drop down menu, select Add to Contacts
  • you can now create a new contact, including a picture, or "Choose existing" and pick a contact
  • confirm your choice and the icon shows up in your project

Xcode isn't clever enough to apply the same committer contact to all your projects so you need to repeat this process for each project.

这篇关于在Xcode中更改Git的用户图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆