Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

0 votes
Mike Corsaro Atlassian Team 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

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

Mike Corsaro Atlassian Team Oct 08, 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.

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.

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
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

3,419 views 4 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you