2

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 '[email protected]'

But what about the user picture?

2 Answers 2

2

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.

enter image description here

1
  • Does it work on Xcode 14 ? Does history move to source control navigator?
    – yycking
    Feb 9, 2023 at 8:35
0

Git doesn't store committer or author pictures or avatars, so you don't need to set a picture there.

GitHub uses gravatar to get an avatar for the email addresses that are stored in the commits, and I imagine Xcode is doing the same here. Try changing the gravatar associated with the email address you used and seeing if that does what you want.

1
  • The 'user picture' I said was the picture displayed in Project history in Source Control of Xcode5.
    – Artisan
    Oct 2, 2014 at 19:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.