yes, there is a way, it can be easily done with git filter-branch. However,
before going where no one should, let's dive in on the consequences.
A commit object consists of a bunch of things, like the commit message, the
root tree object's hash, and in your case the most important, an author
date, commit date, author name and committer name. When you change any of
these in one commit, the SHA1 hash of that commit changes. And, as a commit
also contains the SHA1 of its parent, if you change one commit, you change
all commits that descend from that one.
If you are the only committer in that repo, it is more than likely that the
author and committer is both set to your name+address, so you will change
all the commits anyway, so you don't have to worry about all the above. But
you mentioned the repo is hosted on GitLab. So what happens if someone have
already cloned your repository? They will have a root commit with different
metadata, and Git will complain about unrelated histories (or not; someone
please confirm or deny this fact).
All in all, it is possible, but you probably don't want to do this. If you
really do, see .
On Fri, Aug 12, 2016, 17:49 Pablo Rodríguez <oi...@web.de> wrote:
> Dear list,
> I have a repo (also hosted at Gitlab) that uses an email address that I
> would like to remove from the whole repo (and replace with another one).
> All contributions to that repo are mine. Is there any way that I can
> replace all email addresses in both my local repo and the remote?
> Many thanks for your help,
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.