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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

570 views 1 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