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.
- Rails - Heroku - Git - Problems connecting to repo with os x 10.6.5
- connect to github enterprise from egit over https with a self signed certificate
- git error: cannot handle https
- OpenSSL errno 10054,connection refused, whilst trying to connect to our server
- How to specify CAFile path inline with the GIT command?
- git clone over HTTPs timeout
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.
- log out and then use the “Forgot your password?” button and put in the email address of the social network you logged in with.
- Once you get the email, “change” your password which will have actually set your GitLab password
- 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:
- Create a new account from scratch on Gitlab cloud
- Go to your profile settings on this new account (your image on top right > Edit Profile Settings)
- 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 🙂