How to change git username and email

1.In your terminal, navigate to the repo you want to make the changes in.

2.Execute git config –list to check current username & email in your local repo.

3.Change username & email as desired. Make it a global change or specific to the local repo:

git config --global "Full Name"
git config --global ""

4.Per repo basis you could also edit .git/config manually instead.

Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.
Harinder Singh

Harinder Singh

My name is Harinder Singh and I specialize in Software industry. I consider myself as a life learner. I love learning new concepts, embracing new ideas and reading and searching for innovation.