![]() WARNING: An earlier version of these instructions said to use ssh instead. If the above doesn't work, try this guide (also from Medium): Using Sourcetree to connect to GitHub without password. The first thing you need to do is to pick https option from the drop-down list pointed to by the 1. Try this guide from Medium: Connecting Mac Sourcetree with your GitHub account. (b) If the above didn't work, delete those credential altogether and try Option 1 or 2 again. This looks like so: At that point, I could go to the Clone page, paste in the SSH address from my Gitlab project ( email protected :Blah/Whatever.git) and it cloned it. (a) edit it and replace the password field with a GitHub PAT. Then each time you start SourceTree, a prompt will appear asking for the passphrase to decrypt the idrsa key (assuming you created it with a passphrase to encrypt it). For each credentials related to GitHub (if the name mentions GitHub) in Web Credentials or Windows Credentials categories,.When prompted, enter your usual GitHub username but give the PAT (the one you created in step 1) instead of the regular password. Click on the Refresh Personal Access Token button.Authentication: Personal Access Token (different from option 1 above).In the Sourcetree, choose Tools -> Options -> Authentication.When asked to select the scope of the PAT, you can choose the repo option and the workflow option. Create a classic (not fine-grained) GitHub Personal Access Token (PAT), by following the instructions here.Now, your Sourcetree should be able to push code to a GitHub repo that you have write permission to.If a Browser Window pops up and asks you to login to GitHub and to authorize Sourcetree accessing your GitHub account, do so. ![]() Click on the Refresh OAuth token button.Click on Add, to add an authentication method.If any GitHub authentication methods are shown in that dialog, delete them.In the SourceTree, choose Tools -> Options -> Authentication. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |