On Windows 10 my commits always show as 'unknown <myemail@domain.com>'

I have researched this twice now, and everyone with this problems seems to have a different variation.  I have checked my configuration both through the UI and in the file it is saved in - both have my name.  I have no idea why my email address shows up but my name doesn't.  It's not just for a few commits either, it is every single commit for months.  

3 answers

1 accepted

0 votes
Accepted answer

I solved it.  I don't know which of these things did it:

  1. Tools -> Options -> General -> Uncheck 'Allow SourceTree to modify your global...'
  2. Close SourceTree
  3. Open SourceTree
  4. Put the checkbox back, AND make sure your username doesn't have spaces.  I'm not sure if this matters, but I did it anyway
  5. I also went to every repository setting ->Advanced and unchecked/rechecked use global user settings



Which config file did you check?

I was checking it here: C:\Users\<Username>\AppData\Local\Atlassian\SourceTree\git_local\etc\gitconfig


That no longer appears.  I do see a config under C:\Users\<Username>\AppData\Local\Atlassian\SourceTree\git_local\mingw32\etc but my username is no longer in there.  


I thought by going to Tools -> Options and checking 'Allow SourceTree to Modify your global Git and Mercurial config files' that this would work.  I have also looked in each repository settings to make sure that username exists.  It does. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 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...

962 views 4 2
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you