Answer the question
In order to leave comments, you need to log in
How to change user in git?
Hello.
I have two github profiles.
I've always worked under one, but now I've switched to the other.
I cloned the repository and when I try to push it, it says that I have no rights.
I tried to change the username and email via the console.
git config --global user.name "username"
git config --global user.email [email protected]
but nothing changes.
How can this be fixed? Thank you.
Answer the question
In order to leave comments, you need to log in
I cloned the repository and when I try to push it, it says that I have no rights.
I tried to change the username and email via the console.
git config --global user.name "username"
git config --global user.email [email protected]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question