Skip to content
Discussion options

You must be logged in to vote

Hey there,

I just ran into this myself. Here is what fixed it:

First, you need to change the email associated with your old commits with the correct email. This can be done with

  git filter-branch --env-filter '
      if test "$GIT_AUTHOR_EMAIL" = "root@localhost"
      then
              GIT_AUTHOR_EMAIL=john@example
      fi
      if test "$GIT_COMMITTER_EMAIL" = "root@localhost"
      then
              GIT_COMMITTER_EMAIL=john@example
      fi
      ' -- --all

Where you replace 'root@localhost' with the old email and john@example with the correct email (this was found here).

You can then push the changes with:

git push --force --tags origin 'refs/heads/*'

Which was found here

Hope t…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@budDemant
Comment options

@limitleslibrty
Comment options

Comment options

You must be logged in to vote
1 reply
@budDemant
Comment options

Answer selected by budDemant
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Profile Showcase your work on GitHub with a personalized profile, bio, contributions and pinned repositories Question Ask and answer questions about GitHub features and usage
4 participants