modifying commit's author

4 messages, 3 authors, 2016-06-15 · open the first message on its own page

modifying commit's author

From: J. Bruce Fields <hidden>
Date: 2016-06-15 22:42:50

If I got the author wrong on a commit, is there a quick way to fix it
(e.g. by passing the right arguments or environment variables to commit
--amend)?

--b.

Re: modifying commit's author

From: Robin Rosenberg <hidden>
Date: 2016-06-15 22:42:50

måndag 22 januari 2007 21:37 skrev J. Bruce Fields:
If I got the author wrong on a commit, is there a quick way to fix it
(e.g. by passing the right arguments or environment variables to commit
--amend)?
Set these:
GIT_AUTHOR_EMAIL
GIT_AUTHOR_NAME
GIT_COMMITTER_EMAIL
GIT_COMMITTER_NAME

-- robin

Re: modifying commit's author

From: J. Bruce Fields <hidden>
Date: 2016-06-15 22:42:50

On Mon, Jan 22, 2007 at 09:50:16PM +0100, Robin Rosenberg wrote:
måndag 22 januari 2007 21:37 skrev J. Bruce Fields:
quoted
If I got the author wrong on a commit, is there a quick way to fix it
(e.g. by passing the right arguments or environment variables to commit
--amend)?
Set these:
GIT_AUTHOR_EMAIL
GIT_AUTHOR_NAME
GIT_COMMITTER_EMAIL
GIT_COMMITTER_NAME
That doesn't seem to work in this case, since with the commands that
take an existing commit as a model (like commit --amend and commit -c),
the author information from the existing commit overrides those
environment variables.  Which is normally what you want.

--b.

Re: modifying commit's author

From: Johannes Sixt <hidden>
Date: 2016-06-15 22:42:50

"J. Bruce Fields" wrote:
If I got the author wrong on a commit, is there a quick way to fix it
(e.g. by passing the right arguments or environment variables to commit
--amend)?
Use cogito: cg commit --amend -e
You can edit the author name+email in the commit message.

-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help