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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

647 views 0 4
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