How to change the username on the login form when cloning a repository on Source tree

How to reproduce:

-On windows start Source tree

-Click on Clone/New

-Paste a Git Repo URL on the destination then click on the Destination path Textbox

-The authenticate form will show up

-Fill in a WRONG username (In my cas it was an invalid email address)

-Provide a password and check remember

-Find out it was not the right email address by clicking on Login....

Now every time I try to clone the same repo the authenticate Form shows up with the WRONG email address grayed out. I can only provide a different password. I cannot change the Username!!!!

I try to restart Source tree, UNInstall Source tree, but all previous settings stay and the Invalid Email address is still there after a full Uninstall/Reinstall....

How can I remove this and provide another Username?

Thanks for the help

4 answers

Actually I found the solution!

In the source tree installation folder (in my case it was under "C:\Users\USERNAME\AppData\Local\Atlassian\SourceTree") there are two files named "passwd" and "userhosts". There your bad names are saved. I closed SourceTree, deleted those two files, restarted SourceTree and then the fields were blank again =D

worked 100% thanks a lot

  1. Open the Options dialog from the Tools menu.
  2. Change to the Authentication tab.
  3. Edit your details for the server you are cloning from.

None of these suggestions helped solve the problem. The problem exists in 2016 still.

Problem still exists in 2017, at least on Windows...

I found the "remembered" bad username under SourceTree > Preferences > Network. Just removed that and now I can enter my own username again.

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,224 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