Use gitlab's https link when logged in with Google Account

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.

  • git clone with https error - fatal: repository not found
  • GIT SSH connection issue
  • Setting up TeamCity with my own GIT Server over SSL
  • Pushing large commit to GitHub results in a fatal write error: Bad file descriptor
  • How to access Github through firewall playing man-in-the-middle when using https?
  • How to disable SSH in GitBash and use HTTPS instead
  • maven release -> peer not authenticated
  • Git over HTTPS can do ls-list but cannot clone via HTTP proxy
  • 4 Solutions collect form web for “Use gitlab's https link when logged in with Google Account”

    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.

    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 🙂

    Git Baby is a git and github fan, let's start git clone.