Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SourceTree not using Github account for commits, instead using author and email

Hamish Maritz May 14, 2019

Hi there,

 

I'm currently dealing with an issue that when i commit and push through Sourcetree it seems to use the default author and email address rather than my Github account. When i go into the commits of the repo it shows it as the full name listed on the Source Tree Account without an avatar and unclickable rather than my github username with the avatar that i use. I've tried to uncheck the 'Allow Sourcetree to modify your global git configs' as well as setting my Github account as the default in the accounts tab with no prevail. Any suggestions how i can get it working? cheers.

2 answers

1 vote
Mike Corsaro
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 15, 2019

Hello! You can change the username + email used for commits by clicking on the picture on the commit screen. It should open a popup that will allow you to change it:

help_user.jpg

Tim Morris October 7, 2019

This doesn't answer the OP's question of how to change it to their GitHub account :/

Mike Corsaro
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 8, 2019

Ah, that's because it's not possible to automatically use your Github or Bitbucket account as the default author info for commits. You need to manually override it per-repo, or use one common name and email.

Tim Morris October 16, 2019

Thanks for this, I think my issue might have stemmed from accidentally syncing a SourceTree config file from another computer with this computer, so a problem of my own making! When I checked the commit details, the email address being used wasn't what I'd entered in the repo settings, nor what was displayed in the File Status interface; it was something like the Windows user.

In the end I uninstalled, deleted all traces of SourceTree files I could find and re-installed, which sorted it.

0 votes
Tim Morris October 16, 2019

These articles might help:

What was particularly helpful for me in diagnosing the problem was this tip from the first link above: add .patch to the end of a commit URL on GitHub to view details of the commit, including the email address the commit used. The email address is what GitHub uses to link it to your account, so this is the key bit of information.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events