Use gttlab https when logging in to your Google Account

I signed up for Gitlab using a connection to Google Accounts. Once this is done, and I have permission to clone from the git repository, I try to clone using the https: // link (and not git: SSH)

Now, to complete this process, I ask for my username and password, but what is this in this scenario? Please do not use the SSH link, as ssh is not easy on Windows.

+7
git gitlab
source share
4 answers

In fact, you can use the https link if you are logging in using a Google, Twitter or GitHub link, but you must have an actual GitLab password. If you have already created your account by logging in with a social network, all you need to do is use the "Forgot Password" function.

  • log out and then use the "Forgot Password?" and enter the email address on the social network you’re signed in to.
  • Once you receive the email, “change” your password, which will actually set your GitLab password
  • Now you can use https: clone url with your username and password that you just set.
+16
source

Even if you do not want to hear it: use ssh .;)

Configuring ssh does not work too much on windows:

  • Download putty window installer and run it to install all the sleepers tools.
  • Run puttygen to generate a new key, save the private key on your disk
  • Run pagent and download this key. (Add pagent for autorun if desired.)
  • You may also need to set GIT_SSH = c: \ Program Files \ Putty \ plink.exe

You have to do this only one. Subsequently, everything should work without additional work.

0
source

Another potential solution:

  • Create a new account from scratch in the Gitlab cloud.
  • Go to your profile settings in this new account (your image in the upper right corner> Change profile settings)
  • On the "Account" tab, activate your social account.

Now you can use either your Gmail username, Gitlab password or Gitlab username / password.

0
source

Go to settings → passwords → you can change / create a password, if you created an account through the extension for social networks (google / twitter / fb), add the password to the current password and add and confirm a new password.

it works for me :)

0
source

All Articles