From: Sverre Rabbelier <srabbelier@gmail.com>
To: Aghiles <aghilesk@gmail.com>
Cc: git list <git@vger.kernel.org>
Subject: Re: git commit --amend --author troubles.
Date: Tue, 20 Apr 2010 21:29:19 +0200 [thread overview]
Message-ID: <m2pfabb9a1e1004201229zd3b75801j5889783724669225@mail.gmail.com> (raw)
In-Reply-To: <j2n3abd05a91004201218k73256ecaj8921f3bd7e9cc20d@mail.gmail.com>
Heya,
On Tue, Apr 20, 2010 at 21:18, Aghiles <aghilesk@gmail.com> wrote:
> 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
prev parent reply other threads:[~2010-04-20 19:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-20 19:18 git commit --amend --author troubles Aghiles
2010-04-20 19:29 ` Sverre Rabbelier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2pfabb9a1e1004201229zd3b75801j5889783724669225@mail.gmail.com \
--to=srabbelier@gmail.com \
--cc=aghilesk@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).