I do not want the customer to see the wrong email/name on git.
How can I change all email, name of all old commit?
Please guide me step by step, because I'm just a Git beginner.
Thank you.
I tried this script for a Bitbucket repo, without success :
git filter-branch --commit-filter \ 'if [ "$GIT_AUTHOR_NAME" = "OldAuthor Name" ]; then \ export GIT_AUTHOR_NAME="Author Name";\ export GIT_AUTHOR_EMAIL=authorEmail@example.com;\ export GIT_COMMITTER_NAME="Commmiter Name";\ export GIT_COMMITTER_EMAIL=commiterEmail@example.com;\ fi;\ git commit-tree "$@"'
You can use steps outlined in Git or Hg Repository exceeds number of allowed Committers. There is a collapse section that contains a script that should work for you. Hope that helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.