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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

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

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.
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
AUG Leaders

Atlassian Community Events