git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Altering Previous Commits' Author Field.

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Feb 24, 2009, 21:43 UTC
Message-ID
<200902242243.49612.robin.rosenberg.lists@dewire.com>
In-Reply-To
<c115fd3c0902241329i2455bc8bj62ec41856773be30@mail.gmail.com>
tisdag 24 februari 2009 22:29:15 skrev Tim Visher <tim.visher@gmail.com>:
Show 8 quoted lines
> Hello Everyone,
> 
> I have two identities that git knows me as, one for personal and the
> other for work.  I just realized that I project I've been doing some
> work on at work was using the global config file on that box because I
> had forgotten to a project specific config to change my identity.  Is
> there any way for me to edit the history so that the Author of all of
> those commits is changed to my personal identity?

If you haven't published your branch you can use git-filter-branch to rewrite using the --env-filter "export GIT_AUTHOR_NAME=... etc"

-- robin
Previous: Tim VisherNext: Tim Visher
Message 2 of 3 in “Altering Previous Commits' Author Field.”
  1. Tim VisherFeb 24, 2009
  2. Robin RosenbergFeb 24, 2009
  3. Tim VisherFeb 24, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.