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

Re: git commit --amend --author troubles.

From
Sverre Rabbelier <srabbelier@gmail.com>
Date
Apr 20, 2010, 19:29 UTC
Message-ID
<m2pfabb9a1e1004201229zd3b75801j5889783724669225@mail.gmail.com>
In-Reply-To
<j2n3abd05a91004201218k73256ecaj8921f3bd7e9cc20d@mail.gmail.com>
Heya,
On Tue, Apr 20, 2010 at 21:18, Aghiles <aghilesk@gmail.com> wrote:
Show 6 quoted lines
> Just did a 'git init .' and then committed some files. git rightfully
> told me to check my user name and suggested the '--amend'
> and '--author' flags to change the author of my first commit.
> I tried it immediately but 'git log' shows the initial user as if
> nothing has changed. The amended commit message also
> shows the original name (in the comment).
Weird, works for me (on git 1.7.1):
sverre@laptop-sverre:~/code$ git init firsttest
Initialized empty Git repository in /home/sverre/code/firsttest/.git/
sverre@laptop-sverre:~/code$ cd firsttest/
sverre@laptop-sverre:~/code/firsttest$ echo "hi" > foo
sverre@laptop-sverre:~/code/firsttest$ git add foo
sverre@laptop-sverre:~/code/firsttest$ git commit -m "Initial commit"
[master (root-commit) 6284b75] woot
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 foo
sverre@laptop-sverre:~/code/firsttest$ git commit --amend --author="Piet"
fatal: No existing author found with 'Piet'
sverre@laptop-sverre:~/code/firsttest$ git commit --amend
--author="Piet Hein <piet.hein@example.com>"
[master 17ff92a] Initial commit
 Author: Piet Hein <piet.hein@example.com>
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 foo
Could you post a similar example?
-- 
Cheers,

Sverre Rabbelier
Previous: Aghiles
Message 2 of 2 in “git commit --amend --author troubles.”
  1. AghilesApr 20, 2010
  2. Sverre RabbelierApr 20, 2010

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.