Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

https

gitlab

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.

like image 638
Molten Ice Avatar asked Mar 16 '14 12:03

Molten Ice


People also ask

Can I link GitHub and GitLab?

You can integrate your GitLab instance with GitHub.com and GitHub Enterprise. You can import projects from GitHub, or sign in to GitLab with your GitHub credentials.

What is the username in GitLab?

Your username has a unique namespace, which is updated when you change your username. Before you change your username, read about how redirects behave. If you do not want to update the namespace, you can create a new user or group and transfer projects to it instead.


2 Answers

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.
like image 73
Keith Morris Avatar answered Sep 20 '22 19:09

Keith Morris


Its very simple

  • Login to gitlab (Using OAuth method)
  • Go to https://gitlab.com/profile/password/edit
  • It asks for New password and Password confirmation (If you are registered using OAuth method it will not ask for current password)
  • Enter the password you want to set and click Save Password button

Done! You can now login with your email id and password.

like image 24
Vivek Avatar answered Sep 18 '22 19:09

Vivek