GWorking
GWorking

Reputation: 4341

How have I saved Gitlab username and password in Visual Studio Code, Windows?

This is a strange question, but I cannot find how I did this:

I have three computers, all of them with visual studio code and an account in gitlab. In two of them, my operation has been

git clone ___.git
cd folder
git init
git remote add origin ___.git

And then, every time I push,... I have to enter my id and pass.

But in my first computer, I did something that I don't need to enter the id and pass anymore, it just pushes without hassle.

Then, I thought I must have done something like this

https://git-scm.com/docs/git-credential-store

But when I look for .gitconfig, which I find in the /Users folder, there I only have my user.name (which is not the one of gitlab), the email (this one is the gitlab email) but no password entry. And I cannot find any other .gitconfig files anywhere. For sure I didn't set up any SSH key.

So here the question, what did I do?

Upvotes: 2

Views: 14977

Answers (1)

VonC
VonC

Reputation: 1325137

Make sure to use the GCMfW: Git-Credential-Manager-for-Windows:

git config --global credential.helper manager

Then try again: that should cache your username / password, provided you are using an HTTPS (https://...) URL, not an SSH one.

Upvotes: 4

Related Questions