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 user.name "Full Name"
git config --global user.email "email@address.com"

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.
Yes0
No0
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.