![]() Then click the Connect Account button to. Git remote set-url origin :username/repo. 2020 Switch from Basic authentication to OAuth in the Auth type dropdown in Sourcetree for your Github account. I found on the internet that using SSH instead of HTTPS as repository origin worked for some so you can try that out redirect your local repository to SSH something like this command should work: The best solution is to Uninstall your local Git and install it again (that fixed my problem somehow and i had 0 data loss with it and my repositories in both Git & SourceTree were fine)! So to keep things as short as possible, here are the solutions that worked for me (as i had that problem multliple times on multiple machines): Q: Why doesnt SourceTree use the credentials in the GCM You need to configure SourceTree to use the version of Git installed for the entire system. I tried installing different versions (newer & older) of SourceTree but that didn’t work at all, google for long but didn’t work as well, i tried re-creating repositories using different methods (such as SSH) but didn’t work as well, in fact it almost caused me my changes to be lost - so i completely understand your frustration. ![]() Now, I also tried to remove the account in my settings, and then entering e-mail / password manually. From SourceTree, go to Tools > Options > Git > Git Version > Update Embedded. ![]() fatal: Authentication failed for 'REPOLINK' Pushing to REPOLINK Completed with errors, see above. Solution: The solution was simple, I just updated the Git Version. I had similar issue, i had Bitbucket SourceTree that i used to use to manage my local Github and Bitbucket repositories, but after installing local Git i started getting Git always asking for my username and password on push. An error occurred while sending the request. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |