Reacting
Reacting

Reputation: 6133

How to switch my credentials on a Gitlab repo from the console?

The thing is that I already set up my username and password. But now I am going to work on a special repository where I have to set different credentials and I need to do it from the console.

All I see on the internet is how to set your name and email. But, in which part the console will ask me for my username and password?

Obviously when I try to clone that repo, the console throws an error saying that I don't have permissions. That's why I need to put my old credentials.

Upvotes: 0

Views: 102

Answers (1)

Yang Yang
Yang Yang

Reputation: 441

There are mainly two ways to do that, SSH and HTTPS. Both methods are covered by this post. Based on your information, I think the HTTPS way is what you are looking for.

Upvotes: 1

Related Questions