Navigate to the directory and run the command below for each GitHub account. If you’re on another OS check google for the correct location. I find it’s easier to do all this stuff directly in the ssh configuration for your account. Update each git repository to use the correct ssh key.Configure ssh on you computer and on each github account.You can have multiple github accounts on the same machine and you never have to remember to swap between them. Why use ssh? - You will always have the same user in every client app you use git with for a repository. If you want to use the same connection authentication for a git repository from any git client like shell, source tree or the GitHub client then it’s worth setting up ssh for the GitHub account(s) and configuring the repositories to use it. Using http authentication also often means that a different user will be used in shell git compared to your GUI client. I hope this helps someone it’s crazy frustrating.If you have multiple GitHub accounts like personal and work then it's important to use the correct account for each repository so you don't accidentally commit to one with the wrong GitHub account!.Įach git client has built in ways to do this with http authentication but http authentication tends to only be set with the specific git client and applies to all repositories you have in the specific application. At this point you can copy the new ssh key and add a new key on the bitbucket settings page. You have to click the drop down menu for ssh or https and then either toggle it from https or just click ssh again and you’ll see the save button enable. Once source tree has generated a new key the save option is still greyed out. It will ask for a pass phrase which can be whatever and will never ask for it again and then sometimes brings up another window where you’ll have to type your atlassian password. Hold option to change the button (where copy to clipboard usually is) to show generate new bit bucket key, with option held click that new button. Then in sourcree accounts it reverts to another. The way I do this is by searching for a folder in finder (shift + command + g) ~/.ssh/ and delete the bitbucket files. On my Mac for the past 3 or 4 weeks I have had to reset my. Then I asked my credentials and it all suddenly worked again, creating a new passwd file. I renamed the file C:\Users\USER\AppData\Local\Atlassian\SourceTree\passwd. But I did not have other installation files.įinally I found this post which saved my day, after hours of frustration. I was thinking of reinstalling an old version of Sourcetree, assuming some automatic update had messed things up.After which they SEEMED to be copied from the ones checked in Visual Studio. Why are there 2 right away with a single repository anyway? Resulting in a bunch of saved passwords with different names. I suddenly had authentication problems while contacting a remote git repository from Sourcetree, possible initiated by a password change on Windows.Ĭontacting over a web interface and from Visual Studio did WORK.īut trying all sorts things within Sourcetree did NOT change a damn thing. So here we are in 2022, and these problem are still present! I might have entered the wrong password, but didn't see any problems at that time (I haven't pushed/pulled since then, so wouldn't have seen any problems until today). I'm not sure why it stopped working (I haven't changed my VSTS password and all my private access tokens are still valid), but I seem to recall an odd password box that popped up a week or so ago that I believe came from SourceTree. origin server is Visual Studio Team Services I saw a similar question that mentioned " There is a SourceTree Application password stored in the login keychain." But I have no idea what the login keychain is or how I can fix it in SourceTree. I've updated my Git username every place I've been able to see something that resembles a username, I've gone to Tools > Options > Authentication > and set the password (which is a private access token). However, nothing I've tried will allow me to use the push/pull buttons in SourceTree. The Git terminal from SourceTree asks for my username/password and, when I enter it, it works correctly (I'm able to do a push/pull anyway). In SourceTree, I'm getting the "fatal: Authentication failed for." error when I try to Push/Pull from origin.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |