Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Login in screen pops up in sourcetree

My desktop was previously used by the previous employee at my office. In source tree I have my account logged in but my at random times the previous users login screen pops up with username field disabled

enter image description here

enter image description here

and it comes two times,when I click cancel the second screen pops up. I am fed up with this problem. I have done with everything to try and solve this problem but it will just not go.

like image 842
Rehan Avatar asked Jan 30 '17 07:01

Rehan


People also ask

How do I fix authentication error in SourceTree?

Ensure you are using an app password and that it is also correct (ensure there is no copy and paste error when copying the app password over to Sourcetree for Windows). Ensure Preferred Protocol is set to HTTPS. Hit Refresh Password. Make sure the page shows Authentication OK with the green checkmark, then hit OK.


1 Answers

Quite often this occurs because either a repo has multiple remotes, or a repo has a remote that you've not got permissions to anymore is still bookmarked (even if the tab isn't open in SourceTree).

For example I had 3 repos from a previous contract that I no longer had access too, whilst I didn't have the repos open in tabs within SourceTree, the repo was bookmarked so SourceTree kept trying to authenticate it; removing the bookmarks and then restarting SourceTree fixed the problem.

Removing old/non accessible repositories

local repositories

  1. In the latest version of Source Tree (2.1.2.5 at the time of writing), Select the New Tab + button, under Local repositories -> All Repos ensure that all the Repos are ones you have access to (might have to check each one can do a fetch)

  2. Delete any bookmarks you do not need/have access to

  3. Restart Source Tree

Removing old/duplicate/excessive remotes

Repository Settings

  1. Select your repository tab

  2. Go to the Repository menu and select Repository settings (Ctrl+Shift+,)

  3. Under the "Remotes" table, ensure the remotes are correct (most likely just origin pointing to bitbucket)

Good luck.

like image 190
SlyDave Avatar answered Oct 12 '22 11:10

SlyDave