Configure SourceTree

I finally found the issue, after several attempts between

  • OpenSSH and putty;
  • HTTPS and SSH;
  • generating new keys

I eventually noticed that for github and bitbucket the credentials are through “Oauth”, and for GitLab “Personal access token”. I had generated yesterday a toke, but hadn’t used anywhere.

Steps to add a repo from GitLab on SourceTree:

  1. On your browser, go to your account and > User settings > Personal Access Tokens (https://gitlab.com/profile/personal_access_tokens)
  2. Generate and copy the token
  3. On Sourcetree,
    a) leave https as preferred protocol
    b) click on Refresh Personal Access Token
    c) type your username and use the copied token as password
4 Likes