I wish to update the usernames for a user in the Git history, is this possible?
It was a blunder of mine, I migrated from CVS a while ago and didn’t realise until everyone started using the Git repo that I missed a few usernames.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You want git-filter-branch. As an example, to change the email address of every commit in the entire history, you can do:
You can set up the filter to only modify commits based on whatever criteria you need. For example, if you want to set the email address for all the commits authored by “Barry”, do
This will modify the SHA1s of every commit.