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 Join to answer
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 ...

273 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot