Why does SourceTree not accept my email as valid?

SourceTree throws a pop-up telling me my email account is an invalid format when I try to set it for git commits. I am forced to use git bash to set the username outside of sourcetree. my email has a dash in it, maybe that throws off a regex check somewhere but it's pretty annoying. 

2 answers

Happens to me as well, very annoying!

Additionally, I set the same address in Tools > Options > General, and it's saved there. But still, every time I create a new repo, it asks me again (annoying), it offers DOMAIN\username as a suggestion (annoying) and then it tells me my address is invalid (annoying). 

By the way my address has no dashes, but it has `noreply.users.github.com`, maybe existing regexp doesn't consider the possibility that there are such domains (but at the same time I can't believe I'm the only github.com user of SourceTree!)

My email account consists of letters only, so I strongly suspect it's the part after `@` that confuses SourceTree.


yes, the dash is in the domain part of my email, maybe yours has too many subdomains or something? I resorted to manually copying my details in the git config file every time I make a new repo

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

1,106 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