Change the author of all commits

git filter-branch -f --env-filter "GIT_AUTHOR_NAME='yourname'; GIT_AUTHOR_EMAIL='youremail@example.com'; GIT_COMMITTER_NAME='yourname'; GIT_COMMITTER_EMAIL='youremail@example.com';" HEAD;

Note: if you are using the code above remember to update the placeholders with your own information.

git push --force origin master

Author: Denzil Doyle

Full Stack Dev with a passion for UI/UX Designer. Entrepreneur. Problem solver. Podcast addict. Hobbyist Photographer. Mad Scientist. Occasional comedian.

Leave a Reply

Your email address will not be published. Required fields are marked *