I've signed up to Gitlab using the connection they have with Google Accounts. Once that is made and I have permission to clone from a git repository, I try to clone using the https:// link (not the git: SSH one)

Now to complete this process, I am asked my username and password, but what is that in this scenario? Please don't recommend using SSH link instead as ssh is not straightforward on a Windows OS.

up vote 19 down vote accepted

You can actually use the https link if you login using a Google, Twitter or GitHub link but you have to have an actual GitLab password. If you've already created your account by logging in with a social network, all you have to do is use the Forgot Password feature.

  1. log out and then use the "Forgot your password?" button and put in the email address of the social network you logged in with.
  2. Once you get the email, "change" your password which will have actually set your GitLab password
  3. You should now be able to use the https: clone url with your username and the password you just set.

Even if you don't want to hear it: use ssh. ;)

Setting up ssh is not too much work on windows:

  • Download the putty windows installer and run it to install all putty tools
  • Run puttygen to generate a new key, save the private key on your disk
  • Run pagent and load that key. (Optionally add pagent to autostart.)
  • You might also need to set GIT_SSH=c:\Program Files\Putty\plink.exe

You have to do this only one. Afterwards everything should work without any more work.

  • Haha, actually you can also download TortoiseGit which comes with puttygen. That's what I did eventually for one of the users, and now it works fine! – Molten Ice Mar 17 '14 at 15:47

Another potential solution:

  1. Create a new account from scratch on Gitlab cloud
  2. Go to your profile settings on this new account (your image on top right > Edit Profile Settings)
  3. On Account tab activate your social account

You should now be able to use both your Gmail username and Gitlab password OR your Gitlab username/password.

Go to setting - > passwords -> you can change/create password if you have created account via social media extension (google/twitter/fb) add any password in current password and add & confirm new password.

it works for me :)

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.