1

Today is my first day trying to learn Ruby on Rails and Git using a Mac and I created multiple Git user.names by accident.

How can I delete the duplicates?

Note that I read through the different answers in the posts below and either I did not understand the answer (as I am too new to this) or those answers just did not work for me

More than one value for the key user.name Git

Delete username from a Git repository

Screenshot of error on Terminal: http://bit.ly/1rLjMPC

Thanks so much for your help!

3
  • If it is not related to ruby or ruby-on-rails directly I would suggest to remove those tags Commented Jul 28, 2014 at 19:15
  • the config is a text file, you can always just edit it. Commented Jul 28, 2014 at 19:19
  • Please copy and paste the error messages here. Commented Jul 28, 2014 at 19:20

1 Answer 1

3

This is from one of the links you posted. Execute the following command in your terminal with the correct username you want to use

git config --global --replace-all user.name "username"
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you Vimsha - it worked! I guess I did not realize I was supposed to enter the new username in there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.