Change user email and user in an already pushed commit

15 views
Skip to first unread message

tzach solomon

unread,
Nov 28, 2021, 5:21:58 AM11/28/21
to jenkin...@googlegroups.com
Hi All,

I have a commit where I wrote the wrong email and user and I would like to change it.
I understand this might be a noob question but is there a way to change the email and user name on the already pushed commit?


Thanks,
Tzach


Mark Waite

unread,
Nov 28, 2021, 7:25:22 AM11/28/21
to Jenkins Developers
 That will require rewriting the history of the local repository and will require rewriting the history on the locations where it was pushed.

https://stackoverflow.com/questions/3042437/how-to-change-the-commit-author-for-one-specific-commit provides several different ways to do it and includes good descriptions of the risks associated with those alternatives.

I've generally found that it is not worth the risk to change the email and user name of an already pushed commit.

Mark Waite

tzach solomon

unread,
Nov 28, 2021, 7:28:43 AM11/28/21
to jenkin...@googlegroups.com
Thanks Mark. 
Yeah, I guess it isn't worth the risk.

Thanks for the quick response (and on Sunday!), I appreciate it! :)

Tzach

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/99045612-d7c2-4c03-96fd-bc69fa6922fbn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages