On Fri, 25 Jan 2013 00:36:02 +0800
lei yang <yanglei.f...@gmail.com> wrote:

> if want to add foo.c to my git repos ,I want to keep others know foo.c
> is written by phil, and better to leave the origin commit message.how
> could I do?

I'm not sure I was able to parse the question correctly, but it seems
you want to commit a file authored by someone else.

For this very reason Git distinguishes between the committer -- a
person who actually recorded a commit -- and the author -- a person who
authored the change.  Typically these fields are the same in a commit,
but they might differ, for instance, when importing the changes from
patch files, and you might specify the author when doing `git commit`
by supplying it the "--author=..." command-line option.

> note: I can't use format-patch, because they have different path for
> this file.

A patch is just a text file -- you are free to change paths in its
hunks using a text editor.

-- 


Reply via email to