Answer the question
In order to leave comments, you need to log in
How to change git account?
It seems that the situation should be common, but I did not find the answer.
There are two repositories on github.
One of them is locally registered in git.
When I do git push
it in another repository, then it naturally gives me an error 403.
I tried to change the username like this
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]
Answer the question
In order to leave comments, you need to log in
If under Windows - Then through the Control Panel -> Credential Manager
Oh, it would be nice to switch accounts between each other somehow
git remote add user_a_at_b https://user_a:[email protected]/b/b.git
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question