Sourcetree add account gitlab12/20/2023 ![]() ![]() ![]() Then, in SourceTree, I added the GitHub account, selected HTTPS and OAUTH, selected refresh which opened a page in my browser for me to authorize SourceTrees access. First, I logged into GitHub via a browser and answered the 2 factor authorization questions. The only message I get is 'Authentication failed' and no entries in the 'Process Log' window. So I believe the issue has something to do with the credential managers, but I have no idea on what exactly is happening. Step 5 was all that was needed for my setup. But, I cannot add my GitLab account to SourceTree using the very same PAT I tried it with both SSH and HTTPS. Moreover, I did try to solve my issue by looking down that road, and finding several possible solutions to no avail: Įdit: Finaly, I also tried using command line (opening the terminal using the SourceTree UI), and doing a git fetch there worked when entering my username and PAT). Previous password changes, however, did not affect my git process ever. This password is used as a SSO for multiple systems, including GitLab. From the PuTTY Key Generator dialog, click the Generate button. From Tools, select Create or Import SSH Keys. If you don't connect your account during set up, click Remote to open the Remote repositories page and click Add an account. Install, update, and manage Sourcetree at scale in your managed enterprise environment. Moreover, the issue arose after needing to reset my windows password due to company policy. Add your account and select SSH as the Preferred Protocol. system git version: 2.39.0 (after update, I didn't try to do anything using 2.33 which was installed before updating). ![]() Some extra info if anyone has the same issue: I did get some popups of the CredentialHelperSelector, but as I use a PAT I don't want to use any helper. Updating the embedded git didn't work, because I was already using the "latest" version available through the "update embedded" button. Updating my system git, and switching to using that version. Instead of adding the User Profile through Preferences (did not work for me), just go to Source Control -> Commit, and commit locally, and then Source Control -> Push to push to your repository. It also seems like it, that Sourcetree is having some sort of cache. Once you clone the repo from account 1, switch to the another account and then clone from account 2. This would setup Xcode to identify where to push the commits to. When youre cloning the projects from two GitHub accounts, you also need to map those accounts in the Sourcetree before cloning the repository. Sourcetree will prompt you for the password the next time you try to use that account, and as long as you enter it correctly, it will work and be saved You must be a registered user to add a comment. I had the same issue, and I still don't know what the actual problem is, but the following solved it in my case: From the Source Control navigator add the remote url of your project in GitLab. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |