0

I want to change the email of all of my repository's commits (safley without affecting anything else) so that my contribution graph on github is updated, can someone guide me on what I need to do? If it can be done via github or IntelliJ that would be preferable but will use git commands if necessary.

1 Answers1

1

You could use Git-filter-repo to change the commit history. They have really good documentation.

Madkoo
  • 33
  • 4
  • Note that the result of `git filter-repo` is a *new repository*, which may have commits that aren't related to the original repository. As such, it's a perfectly good answer, but it might "affect [something] else" in a shared repository on GitHub. In particular anyone who has a fork of the repository or is otherwise using it will need to adapt to the new repository. – torek Apr 21 '22 at 09:49
  • What do you mean by "new repository", its a tool meant to rewrite git history. It does not create a new repository for you. Think you are mixing things up here. The question was how to change his repository commits(history) email. And that is one of the tools that could be used. At this moment one of the best tools compared to others. Also it is recommended by the git project them selves: https://git-scm.com/docs/git-filter-branch#_warning – Madkoo Apr 21 '22 at 14:12
  • `git filter-repo` literally creates a new repository (using fast-export and fast-import). filter-branch does an in-place rewrite, but the result should be treated *as if* it is a new repository. See also items 4 and 6 in the description of using filter-repo. – torek Apr 21 '22 at 14:18