G
G
grecigor252021-07-15 00:32:05
git
grecigor25, 2021-07-15 00:32:05

How to change the account from which Git is used?

When committing or any other action, a github account is used, but not the one I need, I have already tried to change a lot of things, but I can’t find anything. How can I change my github account in git?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sand, 2021-07-15
@sand3001

Look at the command line (cmd):
git config --list
In the Output, look at the line credential.helper, most likely its value is manager-core.
In this case, if you have windows, of course, the credentials are stored in: control panel -> user accounts -> account administration -> storage "General credentials"
You can change it by running the command (again in cmd):
git config --global credential.helper store
In theory, after this procedure git will ask you for a login / password
PS: You can also read this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question